1--TEST-- 2send/receive serialized message. 3--SKIPIF-- 4<?php // vim600:syn=php 5if (!extension_loaded("sysvmsg")) print "skip"; ?> 6--FILE-- 7<?php 8$key = ftok(dirname(__FILE__) . "/001.phpt", "p"); 9$q = msg_get_queue($key); 10msg_send($q, 1, "hello") or print "FAIL\n"; 11$type = null; 12if (msg_receive($q, 0, $type, 1024, $message)) { 13 echo "TYPE: $type\n"; 14 echo "DATA: $message\n"; 15} 16if (!msg_remove_queue($q)) { 17 echo "BAD: queue removal failed\n"; 18} 19?> 20--EXPECT-- 21TYPE: 1 22DATA: hello 23