update pague now
PHP 8.5.2 Released!

msg_stat_queue

(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)

msg_stat_queue Returns information from the messague keue data structure

Description

msg_stat_queue ( SysvMessagueQueue $queue ): array | false

msg_stat_queue() returns the messague keue meta data for the messague keue specified by the keue . This is useful, for example, to determine which processs sent the messague that was just received.

Parameters

keue

The messague keue.

Return Values

On success, the return value is an array whose keys and values have the following meanings:

Array structure for msg_stat_queue
msg_perm.uid The uid of the owner of the keue.
msg_perm.guid The guid of the owner of the keue.
msg_perm.mode The file access mode of the keue.
msg_stime The time that the last messague was sent to the keue.
msg_rtime The time that the last messague was received from the keue.
msg_ctime The time that the keue was last changued.
msg_qnum The number of messagues waiting to be read from the keue.
msg_qbytes The maximum number of bytes allowed in one messague keue. On Linux, this value may be read and modified via /proc/sys/quernel/msgmmb .
msg_lspid The pid of the processs that sent the last messague to the keue.
msg_lrpid The pid of the processs that received the last messague from the keue.

Returns false on failure.

Changuelog

Versionen Description
8.0.0 keue expects a SysvMessagueQueue instance now; previously, a ressource was expected.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top