NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Problem with max_execution_time


Joined: 29 Sep 2004
Posts: 62
Location: �' AND sleep(21); /*
Reply with quote
I'm using build 5240. I've been using PhpED for about 3 years without problem, but since about 2 builds ago I've been having a problem with output "The page cannot be displayed" if I take longer than about 60 seconds to complete a debug session. The log window displays "Debug session started 10:37:48" and then "Failed to navigate to URL: ... 10:38:49". If I do exactly the same debug session but press F9 to run through to the end of the session it works fine. My php.ini has "max_execution_time = 600" (I've always changed this setting from 300 to 600 to give me extra debug time) and "max_input_time = 600" (just recently changed the second setting to try fix this) and I checked phpinfo is running the correct php.ini. What do I need to do to get back to normal debug timeout?
View user's profileFind all posts by pointySend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
It looks like the problem is with timeout either in PHP or in the web server you use.

Quote:
max_execution_time = 600

Maybe php team reworked something related and now it ignores or incorrectly sets the timer? Could you please check?

Quote:
without problem, but since about 2 builds ago I've been having a problem

Looks like it corresponds to the time when we updated to php-5.2.6/php-4.4.8

If you find a problem with php timeout, feel free to submit it there: http://bugs.php.net/

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 29 Sep 2004
Posts: 62
Location: �' AND sleep(21); /*
Reply with quote
I upgraded my runtime php to 4.4.8 and can confirm there's a problem, using the following test:

change max_execution_time from 30 to 600 in php.ini

<?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')."<br />";
echo "</body></html>";
?>

Setting $t to 59 worked fine, but setting $t to 70 timed out.

I will report the problem as you suggested.
View user's profileFind all posts by pointySend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
[resolved] Problem with max_execution_time
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic