Re: Odd problem with DB_DataObject

From: Date: Mon, 24 Jan 2005 15:36:17 +0000
Subject: Re: Odd problem with DB_DataObject
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17130@lists.php.net to get a copy of this message
On Mon, 24 Jan 2005 11:50:31 +0100, bertrand Gugger <bertrand@toggg.com> wrote: > Hi Phil, > > >$TESTOBJ = new TestClass(); > > > > > Use a reference and not a copy: > > $TESTOBJ = & new TestClass(); > > Then it works with my PHP 4.3.10. > > Could somebody explain why the copy is not working ? > Is it related to this overload pb ? Very likely. Yet another reason to simply not use overloading in PHP4. As I've said many times before, it is simply *broken* in PHP4 and *should not be used*. -- Justin Patrin

« previous php.pear.general (#17130) next »