summaryrefslogtreecommitdiff
path: root/ext/sysvmsg
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-04-30 00:58:52 +0000
committerWez Furlong <wez@php.net>2002-04-30 00:58:52 +0000
commit2d88266965e0f76aa224b8bb8b5bf77c8f0a487b (patch)
treed28076e4ae68a2f7e4d4800e5b02fc997da7a914 /ext/sysvmsg
parent4618a517da8f8d6a66738f1dc3751f9ecde01134 (diff)
downloadphp-git-2d88266965e0f76aa224b8bb8b5bf77c8f0a487b.tar.gz
Use ftok for message queue key.
Diffstat (limited to 'ext/sysvmsg')
-rw-r--r--ext/sysvmsg/tests/001.phpt5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/sysvmsg/tests/001.phpt b/ext/sysvmsg/tests/001.phpt
index 020dbbda95..bc1691316b 100644
--- a/ext/sysvmsg/tests/001.phpt
+++ b/ext/sysvmsg/tests/001.phpt
@@ -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)) {