Re: Obsoleting PEAR.php
| From: | Sterling Hughes | Date: | Fri, 16 May 2003 20:54:33 +0000 |
| Subject: | Re: Obsoleting PEAR.php | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16385@lists.php.net to get a copy of this message | ||
On Fri, 2003-05-16 at 17:29, Jon Parise wrote:
> On Fri, May 16, 2003 at 07:13:32PM +0200, Martin Jansen wrote:
>
> > Agreed. A quick grep through /pear revealed that 80 classes are
> > extending from PEAR and my wild guess is that only 30% of them really need
> > anything that is provided there (like destructors).
>
> And it's easy to implement destructors manually:
>
> function Foo()
> {
> register_shutdown_function(array(&$this, '_Foo'));
> }
>
> function _Foo()
> {
> // destroy
> }
>
Well, not exactly. The reason for PEAR's destructor framework is so
that multiple PEAR libraries can have destructors.
-Sterling
> --
> Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)
--
"The three most dangerous things in the world are a programmer
with a soldering iron, a hardware type with a program patch and
a user with an idea."
- Unknown