mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
26 lines
324 B
PHP
26 lines
324 B
PHP
--TEST--
|
|
Reflection Bug #26640 (__autoload() not invoked by Reflection classes)
|
|
--FILE--
|
|
<?php
|
|
|
|
function __autoload($c)
|
|
{
|
|
class autoload_class
|
|
{
|
|
public function __construct()
|
|
{
|
|
print "autoload success\n";
|
|
}
|
|
}
|
|
}
|
|
|
|
$a = new ReflectionClass('autoload_class');
|
|
|
|
if (is_object($a)) {
|
|
echo "OK\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
OK
|