bug64515.phpt 312 B

123456789101112
  1. --TEST--
  2. Bug #64515 (Memoryleak when using the same variablename 2times in function declaration) (PHP7)
  3. --FILE--
  4. <?php
  5. function foo($unused = null, $unused = null, $arg = array()) {
  6. return 1;
  7. }
  8. foo();
  9. echo "okey";
  10. ?>
  11. --EXPECTF--
  12. Fatal error: Redefinition of parameter $unused in %sbug64515.php on line 2