2
Bug #32799 (crash: calling the corresponding global var during the destruct)
7
function __destruct (){
8
$GLOBALS['p']->c++; // no warning
9
print $GLOBALS['p']->c."\n"; // segfault
10
var_dump($GLOBALS['p']);
14
$p=null; //destroy the object by a new assignment (segfault)