Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25888 invoked from network); 21 Jun 2011 00:23:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2011 00:23:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain gmail.com does not designate 208.113.200.5 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 208.113.200.5 caibbdcaaaaf.dreamhost.com Windows 98 (1) Received: from [208.113.200.5] ([208.113.200.5:60339] helo=homiemail-a42.g.dreamhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/B5-22948-B74EFFD4 for ; Mon, 20 Jun 2011 20:23:24 -0400 Received: from homiemail-a42.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a42.g.dreamhost.com (Postfix) with ESMTP id 5D0E768C058 for ; Mon, 20 Jun 2011 17:23:11 -0700 (PDT) Received: from [192.168.1.7] (dsl-202-173-152-56.vic.westnet.com.au [202.173.152.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: david@thefourstooges.com) by homiemail-a42.g.dreamhost.com (Postfix) with ESMTPSA id B173868C057 for ; Mon, 20 Jun 2011 17:23:10 -0700 (PDT) Message-ID: <4DFFE46B.5030705@gmail.com> Date: Tue, 21 Jun 2011 10:23:07 +1000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 CC: internals@lists.php.net References: <1308569847.3172.18.camel@guybrush> <00df75ce7b1c7095eecfcd9f419908c6@localhost> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] unregister_shutdown_function() From: davidkmuir@gmail.com (David Muir) 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