ID:               32027
 Updated by:       [EMAIL PROTECTED]
 Reported By:      nickk at att dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Windows
 PHP Version:      4.3.10
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

see also http://php.net/session_write_close


Previous Comments:
------------------------------------------------------------------------

[2005-02-19 15:36:21] nickk at att dot net

Description:
------------
If you enable sessions on a page that runs any program execution
command and do two or more concurrent requests for the page, Apache
immediately stops responding and sits doing nothing (using 0% of the
CPU) until you close it.

I'm using a clean install of both Apache and PHP for windows; both are
using their default configurations. This was tested under Windows 2000
and XP using Apache 1.3.33. The problem seems to be the same under
Apache 2.x as well.

There is a workaround for this problem, and that is to call
session_write_close before calling any program execution function.

Note: This seems to be a Windows specific problem. This was tested with
a *NIX copy of PHP and it worked just fine.

Reproduce code:
---------------
http://www.cs.rit.edu/~ndk4275/multi.php.txt

Expected result:
----------------
When the page loads, click on "Test". It will open two small windows
and will wait for 10 seconds before executing the actual test. It might
seem like the browser is not responding for the ten seconds before the
test, but this is due to the fact that the wait function is a greedy
CPU function. When the test starts, the two small browser windows will
load the test page with the program execution function at the same time
and the main window will reload the current page. At this point, Apache
should stop responding. Attempting to make any request to the server
will result in an indefinite wait.

Actual result:
--------------
After the test executes, Apache stops responding.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32027&edit=1

Reply via email to