mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
352d4a6d8c
- Add missing skipif
28 lines
391 B
PHP
Executable File
28 lines
391 B
PHP
Executable File
--TEST--
|
|
Reflection Bug #26640 (__autoload() not invoked by Reflection classes)
|
|
--SKIPIF--
|
|
<?php extension_loaded('reflection') or die('skip'); ?>
|
|
--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
|