Bug #13711 Updated: set_time_limit affects other requests on the same Apache process
| From: | derick@php.net | Date: | Wed, 17 Oct 2001 11:41:45 +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-68119@lists.php.net to get a copy of this message | ||
ID: 13711
Updated by: derick
Reported By: tal@forum2.org
Old Status: Open
Status: Assigned
Bug Type: Apache related
Operating System: Linux
PHP Version: 4.0.6
Old Assigned To:
Assigned To: derick
New Comment:
Checking it out... if it's true, it's a critical bug.
Derick
Previous Comments:
------------------------------------------------------------------------
[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