|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #18384 Feature request: return value for set_time_limit()
Submitted: 2002-07-17 03:51 UTC Modified: 2002-07-17 04:04 UTC
From: shaun at shat dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.1 OS: FreeBSD 4.6
Private report: No CVE-ID: None
 [2002-07-17 03:51 UTC] shaun at shat dot net
Feature Request:

Currently, set_time_limit() has a void return. There is no way to determine at runtime (from within the script) whether or not the call succeeded.

I would like for set_time_limit() to return a value indicating whether or not it was successful. It would be helpful to have a boolean return value which would return TRUE if set_time_limit() succeeded and the default max_execution_time was overridden, or FALSE if the default max_execution_time could not be overridden.

Thank you!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-17 04:04 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 12 22:01:30 2024 UTC