Re: PEAR destructors
| From: | Stig S. Bakken | Date: | Wed, 10 Jan 2001 09:41:58 +0000 |
| Subject: | Re: PEAR destructors | ||
| References: | 1 2 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-939@lists.php.net to get a copy of this message | ||
"Stig S. Bakken" wrote:
>
> Christian Rishøj wrote:
> >
> > Att: Stig (among others)
> >
> > Christian Rishøj wrote:
> >
> > > This leads me to the conclusion, that _after_ the contructer has run, a
> > > _copy_ of the object is returned by the 'new' command. Therefore the
> > > reference in $array is not a reference to the object returned by 'new foo'.
> >
>
> I'm afraid you're right. I've sent a mail to Andi/Zeev asking for a
> fix.
Zeev says this has been fixed, but you need to specify it at call-time:
$obj = &new PEAR;
I'd like to see that as the default behaviour.
- Stig