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
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: BaghalAghdam dot sajad at Gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 23:01:26 2024 UTC