mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
Co-authored-by: Gina Peter Banyard <girgias@php.net> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
29 lines
644 B
PHP
29 lines
644 B
PHP
--TEST--
|
|
Reflection Bug #29268 (__autoload() not called with reflectionProperty->getClass())
|
|
--FILE--
|
|
<?php
|
|
spl_autoload_register(function ($classname) {
|
|
echo "__autoload($classname)\n";
|
|
eval("class $classname {}");
|
|
});
|
|
|
|
class B{
|
|
public function doit(A $a){
|
|
}
|
|
}
|
|
|
|
$ref = new reflectionMethod('B','doit');
|
|
$parameters = $ref->getParameters();
|
|
foreach($parameters as $parameter)
|
|
{
|
|
$class = $parameter->getClass();
|
|
echo $class->name."\n";
|
|
}
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Method ReflectionParameter::getClass() is deprecated since 8.0, use ReflectionParameter::getType() instead in %s on line %d
|
|
__autoload(A)
|
|
A
|
|
ok
|