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: 2014-07-17 11:05 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: Open Package: *General Issues
PHP Version: 5.6.0beta3 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 01:01:25 2019 UTC