diff options
author | foobar <sniper@php.net> | 2004-01-16 18:24:31 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2004-01-16 18:24:31 +0000 |
commit | 07cf80886138126a9ea5f6e058e4db7849cfda89 (patch) | |
tree | f7b114ac1ab35866c9c91b85dcdbbcb23d3bb77c | |
parent | d8d76f0fccf2dabea1c3238e1dee79a2c53f1b0b (diff) | |
download | php-git-07cf80886138126a9ea5f6e058e4db7849cfda89.tar.gz |
Added test case for bug #26640
-rwxr-xr-x | ext/reflection/tests/bug26640.phpt | 25 |
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 |