mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
25 lines
491 B
PHP
25 lines
491 B
PHP
--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--
|
|
Fatal error: Redefinition of parameter $aaaaaaaa in %sbug54013.php on line 5
|