summaryrefslogtreecommitdiff
path: root/Zend/tests/bug33116.phpt
blob: aa714a1f85a891a7d58ddb8961fc887835771888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Bug #33116 (crash when assigning class name to global variable in __autoload)
--FILE--
<?php
function __autoload($class)
{
  $GLOBALS['include'][] = $class;
  eval("class DefClass{}");
}

$a = new DefClass;
print_r($a);
print_r($GLOBALS['include']);
?>
--EXPECT--
DefClass Object
(
)
Array
(
    [0] => DefClass
)