php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13711 set_time_limit affects other requests on the same Apache process
Submitted: 2001-10-17 06:29 UTC Modified: 2001-11-19 10:04 UTC
From: tal at forum2 dot org Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tal at forum2 dot org
New email:
PHP Version: OS:

 

 [2001-10-17 06:29 UTC] tal at forum2 dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-17 07:41 UTC] derick@php.net
Checking it out... if it's true, it's a critical bug.

Derick
 [2001-10-17 07:56 UTC] 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 08:37 UTC] 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-19 03:02 UTC] derick@php.net
I could not reproduce this with CVS of 15-10-2001 on Linux/Apache 1.3.22
 [2001-11-19 10:04 UTC] derick@php.net
Zeev fixed it! One bottle of Kossu to him!

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC