xref: /PHP-5.6/Zend/tests/unset_cv10.phpt (revision e613889d)
1--TEST--
2unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS))
3--SKIPIF--
4<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
5--FILE--
6<?php
7$a = new ArrayObject($GLOBALS);
8$x = "ok\n";
9echo $x;
10$a->offsetUnset('x');
11echo $x;
12echo "ok\n";
13?>
14--EXPECTF--
15ok
16
17Notice: Undefined variable: x in %sunset_cv10.php on line %d
18ok
19