Re: [PATCH] Raise warning first on "Maximum execution time exceeded"
| From: | Ferenc Kovacs | Date: | Mon, 22 Mar 2010 16:09:00 +0000 |
| Subject: | Re: [PATCH] Raise warning first on "Maximum execution time exceeded" | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47456@lists.php.net to get a copy of this message | ||
On Mon, Mar 22, 2010 at 5:04 PM, Herman Radtke <hermanradtke@gmail.com>wrote:
> > This patch handles timeout, not memory exhaustion.
>
> Apologies. My train of thought inexplicably switched over to memory.
> I meant to assert that your custom error handler could extend the
> length of the script to n extra seconds. This violates that idea of
> the timeout.
>
try:
time php -r 'set_time_limit(1);echo
"start";register_shutdown_function(function(){sleep(10);echo "done";});'
violates what?
Tyrael
> --
> Herman Radtke
> hermanradtke@gmail.com | http://hermanradtke.com
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>