php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 - 3 = ?
Subscribe to this entry?

 
 [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!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-17 04:04 UTC] derick@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net 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: Thu Apr 25 04:01:38 2024 UTC