--TEST-- unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS)) --SKIPIF-- <?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?> --FILE-- <?php $a = new ArrayObject($GLOBALS); $x = "ok\n"; echo $x; $a->offsetUnset('x'); echo $x; echo "ok\n"; ?> --EXPECTF-- ok Notice: Undefined variable: x in %sunset_cv10.php on line %d ok