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