Re: [PATCH] unregister_shutdown_function()
| From: | David Muir | Date: | Tue, 21 Jun 2011 00:23:07 +0000 |
| Subject: | Re: [PATCH] unregister_shutdown_function() | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53455@lists.php.net to get a copy of this message | ||
On 21/06/11 07:41, Arpad Ray wrote:
>
>>>> I also think once that functionality is there the next request will be
>>>>
>>>> get_registered_shutdown_functions()
>>>>
>>>> or something along the lines.
>>> I don't see of what use that could be.
>> Completeness? "Has that stupid shutdown func been registered?"
> Fair enough, although I should point out that
> unregister_shutdown_function() returns false if the function hadn't
> been registered, so if the aim of checking whether it's registered is
> to remove it then that's unnecessary.
>
> Regards,
>
> Arpad
>
Unless you want to check if a shutdown function has been registered, and
adjust certain behaviour accordingly.
eg, you might want to make sure you exit gracefully prior to doing
something that might trigger a fatal error.
Cheers,
David