mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
17 lines
286 B
PHP
17 lines
286 B
PHP
--TEST--
|
|
unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS))
|
|
--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
|