Re: Re: DB_DataObject
| From: | Justin Patrin | Date: | Tue, 26 Oct 2004 15:09:45 +0000 |
| Subject: | Re: Re: DB_DataObject | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15120@lists.php.net to get a copy of this message | ||
On Tue, 26 Oct 2004 11:04:50 +0300 (EEST), Mika Tuupola
<tuupola@appelsiini.net> wrote:
> On Mon, 25 Oct 2004, Justin Patrin wrote:
>
> > But if you use oerloading in PHP4 your script may crash with strange
> > errors and passing things by reference into a function will likely not
>
> I use overloading (mostly __call()) a _lot_ with PHP4 and
> still haven't seen it make php dump core. I know this
> happens for example with DB_DataObject. I suspect it
> only happens if you use things like pass by reference
> with overloading.
>
I've seen it crash and give very strange memory corruption errors as
well as completely breaking pass by ref. I love the idea of __call and
such, but it just doesn't work right in PHP4.
--
paperCrane --Justin Patrin--