php-src/Zend/tests/unset_cv09.phpt
2020-03-31 13:02:32 +02:00

15 lines
220 B
PHP

--TEST--
unset() CV 9 (unset() of global variable in array_pop($GLOBALS))
--FILE--
<?php
$x = "ok\n";
echo array_pop($GLOBALS);
echo $x;
echo "ok\n";
?>
--EXPECTF--
ok
Warning: Undefined variable $x in %s on line %d
ok