From:             karldray at interchange dot ubc dot ca
Operating system: Windows XP SP2
PHP version:      5.2.1
PHP Bug Type:     Apache2 related
Bug description:  Running two PHP scripts causes Apache freeze

Description:
------------
While two PHP scripts (or two instances of the same script) are running,
Apache (2.2.4) stops responding to any new requests (even for non-php
pages) until one of them finishes.

It doesn't seem to matter what the scripts are actually doing; the same
problem occurs when they're doing any of the following:

-performing calculations (e.g. counting from 1 to 10000000)
-blocking on socket functions
-sleep() ing

Reproduce code:
---------------
wait.php:
<?php sleep(15); ?>

1. Open two browser windows and point them both to wait.php so that
they're running at the same time.
2. Before they finish, open a third browser window and point it to any
other URI on the server (even a non-php page).


Expected result:
----------------
The third window should load immediately.

Actual result:
--------------
The third window does not load until one of the two PHP scripts finshes.

Note: If the third request is for a PHP page containing an error_log() at
the very beginning, then the logfile output is not generated as long as
the first two pages are running (suggesting that Apache isn't getting
around to starting PHP during this time).

-- 
Edit bug report at http://bugs.php.net/?id=40596&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40596&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40596&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40596&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40596&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40596&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40596&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40596&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40596&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40596&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40596&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40596&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40596&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40596&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40596&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40596&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40596&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40596&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40596&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40596&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40596&r=mysqlcfg

Reply via email to