Re: [PEPr] +1 for Networking::Net_HL7

From: Date: Sat, 03 Jul 2004 17:57:18 +0000
Subject: Re: [PEPr] +1 for Networking::Net_HL7
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31530@lists.php.net to get a copy of this message
On Sat, 3 Jul 2004 12:59:59 -0400, Daniel Convissor <danielc@analysisandsolutions.com> wrote: > On Sat, Jul 03, 2004 at 01:49:30AM -0700, Justin Patrin wrote: > > > Arnaud Limbourg (http://pear.php.net/user/arnaud) has voted +1 on the proposal for > > > Networking::Net_HL7. > > > > > > return new Net_HL7_Response($data); > > > > It's my understanding that this has been fixed in PHP5. It was a bug. > > Returning by reference implies that you are returning a variable. When > you return an object like that, you're not technically returning a > variable. So, it wasn't a bug. PHP 4 was kind enough to allow it, though > it caused memory corruption. PHP 5 was smart enough to say, "no way!" > Well, the memor corruption issue is reported to be fixed and PHP 5 allows > it. At the same time, I think taking advantage of this feature isn't the > greatest idea due to the potential of the behavior changing in the long > term. But the return value of a function is still a section of memory which holds data...a variable. It makes no sense to me not to let this happen. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.pear.dev (#31530) next »