|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-07-07 05:28 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2011-07-07 05:28 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 09:00:01 2025 UTC |
Description: ------------ On RHEL(or Centos) 5.6 running any available PHP package thru RedHat and the latest version of PHP (5.3.6). Run first script provided in a browser, then while that is running, fire up the second script. The second script will not finish until the first one calls the session_write_close() function. Test script: --------------- === 1.php === <?php $counter=1; $DB= mysql_connect(localhost,$user,$pass,true); mysql_select_db("database"); session_start(); echo "Starting...\n"; while ( $counter <= 5 ) { echo "$counter ... \n"; sleep(2); $counter++; } echo "Done!... \n"; session_write_close(); ?> === 2.php === <?php session_start(); echo "TESTING!\n"; session_write_close(); ?> Expected result: ---------------- When both scripts are run at the same time, the second script should exit (nearly) immediately after opening a session, echoing the TESTING line, then closing the session. After the while loop is done in the first script, it should exit as expected. Actual result: -------------- When the both scripts are executed at the same time (or one right after the other), the second script hangs at the 'session_start()' line until the first script is done.