php-src/Zend/tests/bug54013.phpt

25 lines
491 B
Plaintext
Raw Normal View History

--TEST--
Bug #54013 (ReflectionParam for duplicate parameter contains garbage) (PHP7)
--FILE--
<?php
class a
{
function b($aaaaaaaa, $aaaaaaaa)
{
$params = func_get_args();
}
}
$c = new a;
$c->b('waa?', 'meukee!');
$reflectionClass = new ReflectionClass($c);
$params = $reflectionClass->getMethod('b')->getParameters();
var_dump($params[0], $params[1]);
?>
--EXPECTF--
2014-08-19 01:47:30 +08:00
Fatal error: Redefinition of parameter $aaaaaaaa in %sbug54013.php on line 5