php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45157 Php runtime timeout
Submitted: 2008-06-03 10:44 UTC Modified: 2008-07-11 21:41 UTC
From: arno at dotcontent dot net Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 4.4.8 OS: Windows 2000
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-06-03 10:44 UTC] arno at dotcontent dot net
Description:
------------
Problem with page timing out.
I changed max_execution_time from 30 to 600 in php.ini for debug purposes. This has always worked for me for the past few years. However after upgrading to 4.4.8 I find my php page times out after approx. 60 seconds. As a result php times out while I'm stepping through the code.  I also tried setting max_execution_time to 6000 with same result. Tested on localhost in both IE6 and Mozilla 2. Using Apache Release 10324100.


Reproduce code:
---------------
change max_execution_time from 30 to 600 in php.ini and restart server - phpinfo confirms max_execution_time=600

I used the following to test (adapted from the manual):

<?php 
$t=70; 
echo "<html><head><title>test timeout</title></head><body>"; 
echo "<h2>Test timeout - sleep for $t seconds</h2>"; 
echo "sleeping ".date('h:i:s')."<br />"; 
sleep($t); 
echo "stop sleeping ".date('h:i:s'); 
echo "</body></html>"; 
?> 

$t=59 works fine, but $t=70 times out.


Expected result:
----------------
Expected to see an output page

Actual result:
--------------
The page cannot be displayed

The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-03 12:38 UTC] arno at dotcontent dot net
BTW to exclude any possibility this is a browser-related timeout, I ran the same test successfully with $t=500 seconds on a different machine running php 4.3.4, everything else the same as the original test pc.
 [2008-07-11 21:41 UTC] jani@php.net
We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6
ready.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 16:01:29 2024 UTC