php-src/Zend/tests/unset_cv02.phpt

14 lines
208 B
PHP

--TEST--
unset() CV 2 (unset() global variable in $GLOBALS)
--FILE--
<?php
$x = "ok\n";
echo $x;
unset($GLOBALS["x"]);
echo $x;
?>
--EXPECTF--
ok
Notice: Undefined variable: x in %sunset_cv02.php on line %d