xref: /PHP-8.1/ext/sysvmsg/sysvmsg.stub.php (revision 570d9b63)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @strict-properties
7 * @not-serializable
8 */
9final class SysvMessageQueue
10{
11}
12
13function msg_get_queue(int $key, int $permissions = 0666): SysvMessageQueue|false {}
14
15/**
16 * @param string|int|float|bool $message
17 * @param int $error_code
18 */
19function msg_send(SysvMessageQueue $queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, &$error_code = null): bool {}
20
21/**
22 * @param int $received_message_type
23 * @param int $error_code
24 */
25function msg_receive(
26    SysvMessageQueue $queue,
27    int $desired_message_type,
28    &$received_message_type,
29    int $max_message_size,
30    mixed &$message,
31    bool $unserialize = true,
32    int $flags = 0,
33    &$error_code = null
34): bool {}
35
36function msg_remove_queue(SysvMessageQueue $queue): bool {}
37
38function msg_stat_queue(SysvMessageQueue $queue): array|false {}
39
40function msg_set_queue(SysvMessageQueue $queue, array $data): bool {}
41
42function msg_queue_exists(int $key): bool {}
43