Annotation of embedaddon/php/ext/sysvmsg/tests/003.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: msg_queue_exists()
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded("sysvmsg")) die("skip sysvmsg extension is not available")?>
        !             5: --FILE--
        !             6: <?php
        !             7: $id = ftok(__FILE__, 'r');
        !             8: 
        !             9: msg_remove_queue(msg_get_queue($id, 0600));
        !            10: 
        !            11: var_dump(msg_queue_exists($id));
        !            12: $res = msg_get_queue($id, 0600);
        !            13: var_dump($res);
        !            14: var_dump(msg_queue_exists($id));
        !            15: var_dump(msg_remove_queue($res));
        !            16: var_dump(msg_queue_exists($id));
        !            17: echo "Done\n";
        !            18: ?>
        !            19: --EXPECTF--
        !            20: bool(false)
        !            21: resource(%d) of type (sysvmsg queue)
        !            22: bool(true)
        !            23: bool(true)
        !            24: bool(false)
        !            25: Done

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