xref: /php-src/ext/sysvmsg/sysvmsg.stub.php (revision 4ad7e725)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var int
7 * @cvalue PHP_MSG_IPC_NOWAIT
8 */
9const MSG_IPC_NOWAIT = UNKNOWN;
10/**
11 * @var int
12 * @cvalue EAGAIN
13 */
14const MSG_EAGAIN = UNKNOWN;
15/**
16 * @var int
17 * @cvalue ENOMSG
18 */
19const MSG_ENOMSG = UNKNOWN;
20/**
21 * @var int
22 * @cvalue PHP_MSG_NOERROR
23 */
24const MSG_NOERROR = UNKNOWN;
25/**
26 * @var int
27 * @cvalue PHP_MSG_EXCEPT
28 */
29const MSG_EXCEPT = UNKNOWN;
30
31/**
32 * @strict-properties
33 * @not-serializable
34 */
35final class SysvMessageQueue
36{
37}
38
39function msg_get_queue(int $key, int $permissions = 0666): SysvMessageQueue|false {}
40
41/**
42 * @param string|int|float|bool $message
43 * @param int $error_code
44 */
45function msg_send(SysvMessageQueue $queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, &$error_code = null): bool {}
46
47/**
48 * @param int $received_message_type
49 * @param int $error_code
50 */
51function msg_receive(
52    SysvMessageQueue $queue,
53    int $desired_message_type,
54    &$received_message_type,
55    int $max_message_size,
56    mixed &$message,
57    bool $unserialize = true,
58    int $flags = 0,
59    &$error_code = null
60): bool {}
61
62function msg_remove_queue(SysvMessageQueue $queue): bool {}
63
64function msg_stat_queue(SysvMessageQueue $queue): array|false {}
65
66function msg_set_queue(SysvMessageQueue $queue, array $data): bool {}
67
68function msg_queue_exists(int $key): bool {}
69