php-src/ext/reflection/tests/bug26640.phpt

26 lines
313 B
Plaintext
Raw Normal View History

2004-01-16 18:24:31 +00:00
--TEST--
Bug #26640 (__autoload() not invoked by Reflection classes)
--FILE--
<?php
function __autoload($c)
{
class autoload_class
{
public function __construct()
{
print "autoload success\n";
}
}
}
2004-03-30 21:17:52 +00:00
$a = new ReflectionClass('autoload_class');
2004-01-16 18:24:31 +00:00
if (is_object($a)) {
echo "OK\n";
}
?>
--EXPECT--
OK