RE: [PHP] Problem with script timing out in php 4.4.8
The fact that 59 seconds worked suggested the ini settings was in effect, otherwise it would have timed out after 30 seconds (default ini setting). But I also tested your suggestion: Test timeout - sleep for $t seconds"; echo "max execution time set to ".ini_get("max_execution_time").""; echo "sleeping ".date('h:i:s').""; sleep($t); echo "stop sleeping ".date('h:i:s'); ?> ?> Same result, $t=59 works but $t=70 times out Cheers Arno -Original Message- From: Ólafur Waage [mailto:[EMAIL PROTECTED] Sent: 04 June 2008 11:19 To: php-general@lists.php.net Subject: Re: [PHP] Problem with script timing out in php 4.4.8 Could you try setting the max_execution_time with ini_set and confirming the status of it with ini_get ? - Waage 2008/6/4 Arno Kuhl <[EMAIL PROTECTED]>: > I recently picked up an issue when I upgraded my IDE, where the > browser window timed out while I was debugging the code. I checked > with support and was told the problem was with php 4.4.8 which they'd > upgraded to, so to confirm I installed 4.4.8 and ran a test - and it > seems there is a problem with 4.4.8. > > The test was: > > change max_execution_time from 30 to 600 in php.ini - phpinfo confirms > max_execution_time=600 > > $t=70; > echo "Test timeout - sleep for $t seconds"; echo "sleeping > ".date('h:i:s').""; sleep($t); echo "stop sleeping > ".date('h:i:s'); ?> > > $t=59 works fine, but $t=70 times out. > > (Windows 2000, Apache Release 10324100) > > 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. > > What bothers me a bit is 4.4.8 has been available since February and > checking the archives I see no-one else has reported this problem, > which seems highly unlikely, so I'm wondering if this is specific only > to my environment somehow. Has anyone else had problems with > max_execution_time in 4.4.8? > > Cheers > Arno > > > -- > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: > http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with script timing out in php 4.4.8
Could you try setting the max_execution_time with ini_set and confirming the status of it with ini_get ? - Waage 2008/6/4 Arno Kuhl <[EMAIL PROTECTED]>: > I recently picked up an issue when I upgraded my IDE, where the browser > window timed out while I was debugging the code. I checked with support and > was told the problem was with php 4.4.8 which they'd upgraded to, so to > confirm I installed 4.4.8 and ran a test - and it seems there is a problem > with 4.4.8. > > The test was: > > change max_execution_time from 30 to 600 in php.ini - phpinfo confirms > max_execution_time=600 > > $t=70; > echo "Test timeout - sleep for $t seconds"; > echo "sleeping ".date('h:i:s').""; > sleep($t); > echo "stop sleeping ".date('h:i:s'); > ?> > > $t=59 works fine, but $t=70 times out. > > (Windows 2000, Apache Release 10324100) > > 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. > > What bothers me a bit is 4.4.8 has been available since February and > checking the archives I see no-one else has reported this problem, which > seems highly unlikely, so I'm wondering if this is specific only to my > environment somehow. Has anyone else had problems with max_execution_time in > 4.4.8? > > Cheers > Arno > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with script timing out in php 4.4.8
I recently picked up an issue when I upgraded my IDE, where the browser window timed out while I was debugging the code. I checked with support and was told the problem was with php 4.4.8 which they'd upgraded to, so to confirm I installed 4.4.8 and ran a test - and it seems there is a problem with 4.4.8. The test was: change max_execution_time from 30 to 600 in php.ini - phpinfo confirms max_execution_time=600 Test timeout - sleep for $t seconds"; echo "sleeping ".date('h:i:s').""; sleep($t); echo "stop sleeping ".date('h:i:s'); ?> $t=59 works fine, but $t=70 times out. (Windows 2000, Apache Release 10324100) 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. What bothers me a bit is 4.4.8 has been available since February and checking the archives I see no-one else has reported this problem, which seems highly unlikely, so I'm wondering if this is specific only to my environment somehow. Has anyone else had problems with max_execution_time in 4.4.8? Cheers Arno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php