summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rwxr-xr-xext/reflection/tests/bug26640.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug26640.phpt b/ext/reflection/tests/bug26640.phpt
new file mode 100755
index 0000000000..af7b0d032e
--- /dev/null
+++ b/ext/reflection/tests/bug26640.phpt
@@ -0,0 +1,25 @@
+--TEST--
+Bug #26640 (__autoload() not invoked by Reflection classes)
+--FILE--
+<?php
+
+function __autoload($c)
+{
+ class autoload_class
+ {
+ public function __construct()
+ {
+ print "autoload success\n";
+ }
+ }
+}
+
+$a = new Reflection_Class('autoload_class');
+
+if (is_object($a)) {
+ echo "OK\n";
+}
+
+?>
+--EXPECT--
+OK