Re: Only variables or references can be returned by reference

From: Date: Mon, 12 Jan 2004 03:09:32 +0000
Subject: Re: Only variables or references can be returned by reference
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-6985@lists.php.net to get a copy of this message
On Sun, Jan 11, 2004 at 07:36:53PM +0100, Lukas Smith wrote: > > So does this mean we can all remove our php5 compatibility hacks that relate > to the above bug report? I don't think that's wise. Even though PHP 5 now won't complain about it, PHP 4 had problems with returning by reference on non variables even though it didn't produce any warnings. Let alone, only returning a variable when returning by reference is the right thing to do. Just because you can get away with not doing it doesn't make it right. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.internals (#6985) next »