From: neo at gothic-chat dot de Operating system: FreeBSD 5.1 PHP version: 4.3.4 PHP Bug Type: Semaphore related Bug description: msg_receive doesn't block
Description: ------------ On my developement-system (FreeBSD 5.1), msg_receive doesn't block until a new message arrives, even if MSG_IPC_NOWAIT is not passed to flags. msg_receive will return immediately, returning false. Reproduce code: --------------- while (true) { $rcv = msg_receive ($key, 0, $msg_type, 65536, $msginfo, true, 0); var_dump ($rcv)); } Expected result: ---------------- The script should block until msg_receive returns true -- Edit bug report at http://bugs.php.net/?id=28197&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28197&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28197&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28197&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28197&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28197&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28197&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28197&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28197&r=support Expected behavior: http://bugs.php.net/fix.php?id=28197&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28197&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28197&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28197&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28197&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28197&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28197&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28197&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28197&r=float