Annotation of embedaddon/php/Zend/tests/unset_cv10.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>