mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
For rationale, see #6787 Extensions migrated in part 4: * simplexml * skeleton * soap * spl * sqlite3 * sysvmsg * sysvsem * tidy - also removed a check for an ancient dependency version
22 lines
416 B
PHP
22 lines
416 B
PHP
--TEST--
|
|
send/receive serialized message.
|
|
--EXTENSIONS--
|
|
sysvmsg
|
|
--FILE--
|
|
<?php
|
|
$key = ftok(__DIR__ . "/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)) {
|
|
echo "TYPE: $type\n";
|
|
echo "DATA: $message\n";
|
|
}
|
|
if (!msg_remove_queue($q)) {
|
|
echo "BAD: queue removal failed\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
TYPE: 1
|
|
DATA: hello
|