xref: /PHP-8.2/Zend/tests/unset_cv10.phpt (revision 71fb8356)
1--TEST--
2unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS))
3--FILE--
4<?php
5/* This is working on a copy of $GLOBALS, so nothing interesting happens here. */
6$a = new ArrayObject($GLOBALS);
7$x = "ok\n";
8echo $x;
9$a->offsetUnset('x');
10echo $x;
11echo "ok\n";
12?>
13--EXPECT--
14ok
15ok
16ok
17