mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
36935e42ea
Closes GH-5312
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
|