Bug #13711: set_time_limit affects other requests on the same Apache process
| From: | tal at forum2 dot org | Date: | Wed, 17 Oct 2001 10:29:40 +0000 |
| Subject: | Bug #13711: set_time_limit affects other requests on the same Apache process | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-68111@lists.php.net to get a copy of this message | ||
From: tal@forum2.org
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Apache related
Bug description: set_time_limit affects other requests on the same Apache process
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 bug report at: http://bugs.php.net/?id=13711&edit=1