note 123259 added to function.msg-queue-exists
| From: | klatovsky at 2u2 dot cz | Date: | Thu, 25 Oct 2018 14:14:51 +0000 |
| Subject: | note 123259 added to function.msg-queue-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209509@lists.php.net to get a copy of this message | ||
This function is creating new queue (and returning true) if you set NULL into $key variable.
<?php
$isQueueCreated = msg_queue_exists(NULL);
print $isQueueCreated ? "WTF??!" : "ok, everything is fine..";
?>
WTF??!
# ipcs -q
0x00000000 173047808 root 0 0 0
----
Server IP: 208.43.231.9
Probable Submitter: 84.42.237.123
----
Manual Page -- http://php.net/manual/en/function.msg-queue-exists.php
Edit -- https://master.php.net/note/edit/123259
Del: integrated -- https://master.php.net/note/delete/123259/integrated
Del: useless -- https://master.php.net/note/delete/123259/useless
Del: bad code -- https://master.php.net/note/delete/123259/bad+code
Del: spam -- https://master.php.net/note/delete/123259/spam
Del: non-english -- https://master.php.net/note/delete/123259/non-english
Del: in docs -- https://master.php.net/note/delete/123259/in+docs
Del: other reasons-- https://master.php.net/note/delete/123259
Reject -- https://master.php.net/note/reject/123259
Search -- https://master.php.net/manage/user-notes.php