From: webmaster at drarok dot com Operating system: Windows/FreeBSD PHP version: 5.2.5 PHP Bug Type: Session related Bug description: session_start appears to block other requests
Description: ------------ Calling session_start() appears to wait until other scripts have exited that are using the same session. My guess is the 1st request locks the session file for exclusive use, and the second request blocks until it can open it. Reproduce code: --------------- I have a fully working proof of concept at http://www.drarok.com/test.php with the source available at http://www.drarok.com/test.phps Expected result: ---------------- I would except the asynchronous requests to come back in the order they finish. Request 2 doesn't call sleep(), so should always finish 1st. Actual result: -------------- Request 1 blocks for 2 seconds, then request 2 returns immediately after request 1 finishes. -- Edit bug report at http://bugs.php.net/?id=44400&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44400&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44400&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44400&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44400&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44400&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44400&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44400&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44400&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44400&r=support Expected behavior: http://bugs.php.net/fix.php?id=44400&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44400&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44400&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44400&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44400&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44400&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44400&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44400&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44400&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44400&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44400&r=mysqlcfg