mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
23 lines
323 B
PHP
Executable File
23 lines
323 B
PHP
Executable File
--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
|
|
)
|