summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug26640.phpt
blob: 203785f1dc23a35a352f5f5eb7b28e4ec559db6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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