unset_cv10.phpt 308 B

12345678910111213141516
  1. --TEST--
  2. unset() 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";
  8. echo $x;
  9. $a->offsetUnset('x');
  10. echo $x;
  11. echo "ok\n";
  12. ?>
  13. --EXPECT--
  14. ok
  15. ok
  16. ok