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