php-src/Zend/tests/bug64515.phpt

13 lines
309 B
Plaintext
Raw Normal View History

--TEST--
Bug #64515 (Memoryleak when using the same variablename 2times in function declaration) (PHP7)
--FILE--
<?php
function foo($unused = null, $unused = null, $arg = array()) {
return 1;
}
foo();
echo "okey";
?>
--EXPECTF--
2014-08-19 01:47:30 +08:00
Fatal error: Redefinition of parameter $unused in %sbug64515.php on line 2