summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2004-01-16 18:24:31 +0000
committerfoobar <sniper@php.net>2004-01-16 18:24:31 +0000
commit07cf80886138126a9ea5f6e058e4db7849cfda89 (patch)
treef7b114ac1ab35866c9c91b85dcdbbcb23d3bb77c
parentd8d76f0fccf2dabea1c3238e1dee79a2c53f1b0b (diff)
downloadphp-git-07cf80886138126a9ea5f6e058e4db7849cfda89.tar.gz
Added test case for bug #26640
-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