1--TEST-- 2Bug #33116 (crash when assigning class name to global variable in autoloader) 3--FILE-- 4<?php 5spl_autoload_register(function ($class) { 6 $GLOBALS['include'][] = $class; 7 eval("class DefClass{}"); 8}); 9 10$a = new DefClass; 11print_r($a); 12print_r($GLOBALS['include']); 13?> 14--EXPECT-- 15DefClass Object 16( 17) 18Array 19( 20 [0] => DefClass 21) 22