Bug #13711 Updated: set_time_limit affects other requests on the same Apache process
| From: | derick@php.net | Date: | Mon, 19 Nov 2001 15:04:27 +0000 |
| Subject: | Bug #13711 Updated: set_time_limit affects other requests on the same Apache process | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70919@lists.php.net to get a copy of this message | ||
ID: 13711
Updated by: derick
Reported By: tal@forum2.org
Old Status: Critical
Status: Closed
Bug Type: Apache related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
Zeev fixed it! One bottle of Kossu to him!
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-10-19 03:02:13] derick@php.net
I could not reproduce this with CVS of 15-10-2001 on Linux/Apache 1.3.22
------------------------------------------------------------------------
[2001-10-17 08:37:22] sander@php.net
Reproduced with 4.0.7RC3 on Apache_1.3.22 on Win2k, and 4.0.6 on 1.3.20 on Debian Linux.
------------------------------------------------------------------------
[2001-10-17 07:56:01] mfischer@php.net
Verified on W2k, Apache 1.3.20 and 4.0.6.
However, can't reproduce on Linux with RC3.
Can you try a newer version plz?
- Markus
------------------------------------------------------------------------
[2001-10-17 07:41:44] derick@php.net
Checking it out... if it's true, it's a critical bug.
Derick
------------------------------------------------------------------------
[2001-10-17 06:29:40] tal@forum2.org
set_time_limit, rather than applying to the currently running script, applies to other PHP scripts
as well (including scripts from other domains on the same server).
Apparently, set_time_limit affects any future PHP script that will be handled by the same instance
of Apache (when using mod_php), i.e., the timeout value is not reset for every new script.
Simple testing:
(Warning: this test will reduce server availability for the duration of the test.)
a. Make sure that PHP logs all errors in a file.
b. create a web page (PHP script) that only does "set_time_limit(1)".
c. Load that page (you might wish to reload it several times).
Now watch the tail of the PHP error log, as more and more "scrpit timed out after 1
second" errors appear in completely unrelated PHP scripts running on the server.
To stop the test, just run a different script that returns set_time_limit to its default.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13711&edit=1