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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to