|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-03 23:55 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 03:00:01 2025 UTC |
Actually, the script was complete and worked. :) <?php file_put_contents("/tmp/" . uniqid('moo') . '.txt', __FILE__); $queue = msg_get_queue(123456); msg_receive($queue, 1, $msgType, 1024, $var); ?>