]> granicus.if.org Git - php/commitdiff
Use ftok for message queue key.
authorWez Furlong <wez@php.net>
Tue, 30 Apr 2002 00:58:52 +0000 (00:58 +0000)
committerWez Furlong <wez@php.net>
Tue, 30 Apr 2002 00:58:52 +0000 (00:58 +0000)
ext/sysvmsg/tests/001.phpt

index 020dbbda95de5382d490847b71fa349ca7ebdacc..bc1691316b9757bafc01c232b8084d85be9c0e3d 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Check for sysvmsg presence
+send/receive serialized message.
 --SKIPIF--
 <?php // vim600:syn=php
 if (!extension_loaded("sysvmsg")) print "skip"; ?>
@@ -7,7 +7,8 @@ if (!extension_loaded("sysvmsg")) print "skip"; ?>
 --GET--
 --FILE--
 <?php 
-$q = msg_get_queue(911);
+$key = ftok("./ext/sysvmsg/tests/001.phpt", "p");
+$q = msg_get_queue($key);
 msg_send($q, 1, "hello") or print "FAIL\n";
 $type = null;
 if (msg_receive($q, 0, $type, 1024, $message)) {