ID: 44400 Updated by: [EMAIL PROTECTED] Reported By: webmaster at drarok dot com -Status: Open +Status: Bogus Bug Type: Session related Operating System: Windows/FreeBSD PHP Version: 5.2.5 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php This is expected, the session file is locked to avoid corruption. Previous Comments: ------------------------------------------------------------------------ [2008-03-10 21:41:31] webmaster at drarok dot com 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 this bug report at http://bugs.php.net/?id=44400&edit=1