1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/reflection/tests/bug26640.phpt
2020-02-03 22:52:20 +01:00

25 lines
377 B
PHP

--TEST--
Reflection Bug #26640 (__autoload() not invoked by Reflection classes)
--FILE--
<?php
spl_autoload_register(function ($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