--TEST-- Bug #32799 (crash: calling the corresponding global var during the destruct) --FILE-- c++; // no warning print $GLOBALS['p']->c."\n"; // segfault var_dump($GLOBALS['p']); } } } $p=new test; $p=null; //destroy the object by a new assignment (segfault) ?> --EXPECT-- NULL