#50378 [Opn->Fbk]: msg_receive() blocks next requests to the same URL

From: Date: Fri, 04 Dec 2009 04:42:55 +0000
Subject: #50378 [Opn->Fbk]: msg_receive() blocks next requests to the same URL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-145390@lists.php.net to get a copy of this message
ID: 50378 Updated by: jani@php.net 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

« previous php.bugs (#145390) next »