Re: PEAR destructor v. register_shutdown_function()
| From: | Stig S. Bakken | Date: | Wed, 23 Oct 2002 11:00:37 +0000 |
| Subject: | Re: PEAR destructor v. register_shutdown_function() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10211@lists.php.net to get a copy of this message | ||
On Tue, 2002-10-22 at 18:52, Jon Parise wrote:
> Are there reasons why I shouldn't just register my own shutdown
> function (via register_shutdown_function()) in my own PEAR package
> instead of using PEAR's destructor mechanism?
>
> It seems preferrable to handle shutdown conditions internally to the
> package where it's applicable, but maybe I'm overlooking some implicit
> advantages of PEAR's system.
It's just a convenience, and "forward compatibility" with ZE2. Using
your own shutdown functions is fine. :)
- Stig
--
Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway
http://pear.php.net/wishlist.php/ssb