mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
17 lines
273 B
PHP
17 lines
273 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
|
|
|
|
Warning: Undefined variable: x in %s on line %d
|
|
ok
|