ID: 50378
Updated by: [email protected]
Reported By: dimitri dot ho at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Semaphore related
Operating System: Linux
PHP Version: 5.2.11
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2009-12-03 23:55:45] dimitri dot ho at gmail dot com
Description:
------------
msg_receive() blocks next requests to the same URL
Reproduce code:
---------------
<?php
file_put_contents("/tmp/" . uniqid('moo') . '.txt', __FILE__);
$queue = msg_get_queue(123456);
msg_receive($queue, 1, $msgType, 1024, $var);
Expected result:
----------------
When running it twice, I expect to see 2 /tmp/moo* files.
Actual result:
--------------
Let's say my URL is http://quux.fr/receive.php.
Run http://quux.fr/receive.php once: a moo file is created.
Run it a second time: no file is created.
Run http://quux.fr/receive.php?lol: a new moo file is created.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50378&edit=1