php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80641 Timeout Problem
Submitted: 2021-01-18 17:25 UTC Modified: 2021-01-18 17:52 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:3 of 4 (75.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: BaghalAghdam dot sajad at Gmail dot com Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 7.4.14 OS: Linux/Cpanel
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-01-18 17:25 UTC] BaghalAghdam dot sajad at Gmail dot com
Description:
------------
Hello.
I was test my code, while I'm using this code:
set_time_limit(5);
$e = 0;
while(true){
    $e++;
}
keeps alive and not getting timeout error. 
I changed version to php7.3, Fixed.

Test script:
---------------
set_time_limit(5);
$e = 0;
while(true){
    $e++;
}

Expected result:
----------------
Nothing


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-01-18 17:39 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-01-18 17:39 UTC] cmb@php.net
This works for me as expected (PHP-7.4 on Windows).  Note that
set_time_limit($x) increases the timeout set via
max_execution_time by $x seconds, so make sure that your
max_execution_time is not set to a large value or even 0.
 [2021-01-18 17:44 UTC] BaghalAghdam dot sajad at Gmail dot com
-Status: Feedback +Status: Assigned -Operating System: Linux/Windows +Operating System: Linux/Cpanel
 [2021-01-18 17:44 UTC] BaghalAghdam dot sajad at Gmail dot com
It's ok in cli,but cpanel have problem.
 [2021-01-18 17:52 UTC] cmb@php.net
-Status: Assigned +Status: Open -Assigned To: cmb +Assigned To:
 [2021-01-18 17:52 UTC] cmb@php.net
Well, I can't help with cpanel.
 [2021-01-23 11:12 UTC] sarahthomas197598 at gmail dot com
Thanks for sharing...

https://www.igarageband.net/garageband-for-pc/
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu May 06 06:01:24 2021 UTC