/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
reflection
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/reflection/tests/bug33312.phpt
--TEST-- Reflection Bug #33312 (ReflectionParameter methods do not work correctly) --FILE-- <?php class Foo { public function bar(Foo $foo, $bar = 'bar') { } } $class = new ReflectionClass('Foo'); $method = $class->getMethod('bar'); foreach ($method->getParameters() as $parameter) { if ($parameter->isDefaultValueAvailable()) { print $parameter->getDefaultValue()."\n"; } } ?> --EXPECT-- bar
Copyright ©2k19 -
Hexid
|
Tex7ure