Annotation of embedaddon/php/Zend/tests/bug33116.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #33116 (crash when assigning class name to global variable in __autoload)
3: --FILE--
4: <?php
5: function __autoload($class)
6: {
7: $GLOBALS['include'][] = $class;
8: eval("class DefClass{}");
9: }
10:
11: $a = new DefClass;
12: print_r($a);
13: print_r($GLOBALS['include']);
14: ?>
15: --EXPECT--
16: DefClass Object
17: (
18: )
19: Array
20: (
21: [0] => DefClass
22: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>