xref: /php-src/ext/reflection/tests/bug26640.phpt (revision f8d79582)
1--TEST--
2Reflection Bug #26640 (__autoload() not invoked by Reflection classes)
3--FILE--
4<?php
5
6spl_autoload_register(function ($c) {
7    class autoload_class
8    {
9        public function __construct()
10        {
11            print "autoload success\n";
12        }
13    }
14});
15
16$a = new ReflectionClass('autoload_class');
17
18if (is_object($a)) {
19    echo "OK\n";
20}
21
22?>
23--EXPECT--
24OK
25