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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shaun at shat dot net
New email:
PHP Version: OS:

 

 [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: Tue Apr 23 09:01:27 2024 UTC