php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #67309 get_time_limit / ini_get('max_execution_time');
Submitted: 2014-05-20 11:13 UTC Modified: 2021-08-06 10:41 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: martin dot keckeis1 at gmail dot com Assigned:
Status: Suspended Package: *General Issues
PHP Version: 5.6.0beta3 OS:
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: martin dot keckeis1 at gmail dot com
New email:
PHP Version: OS:

 

 [2014-05-20 11:13 UTC] martin dot keckeis1 at gmail dot com
Description:
------------
Hello together,

for consistency (set_time_limit exists) it would be great if there would be a get_time_limit function.

Same behaviour like ini_get('max_execution_time');

Maybe the return could be a number instead of string :-)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-16 22:23 UTC] yohgaki@php.net
Refer to
https://wiki.php.net/rfc/deprecate-ini-functions

IMHO, all of INI functions other than ini_get()/ini_set() should be gone for the sake of simplicity.
 [2014-07-17 11:05 UTC] martin dot keckeis1 at gmail dot com
That would be fine too.

Just being consistent =)
 [2015-05-10 21:19 UTC] fgm at osinet dot fr
@martin dot keckeis1 : set_time_limit() is not a value setter like ini_set() : it resets the running time counter to 0 for a new period of time.

Which does not remove the need for get_time_limit(), though.
 [2021-08-06 10:41 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2021-08-06 10:41 UTC] cmb@php.net
Well, the mentioned RFC apparently has been withdrawn in favor of
another one, although I couldn't find that.  Anyhow, this feature
obviously would need the RFC process[1], so anyone who is
interested in this should pursue it.  For the time being, I
suspend this ticket.

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 00:01:30 2024 UTC