unset_cv10.phpt 286 B

12345678910111213141516
  1. --TEST--
  2. unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS))
  3. --FILE--
  4. <?php
  5. $a = new ArrayObject($GLOBALS);
  6. $x = "ok\n";
  7. echo $x;
  8. $a->offsetUnset('x');
  9. echo $x;
  10. echo "ok\n";
  11. ?>
  12. --EXPECTF--
  13. ok
  14. Notice: Undefined variable: x in %sunset_cv10.php on line %d
  15. ok