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