At 10:09 PM 1/11/2004 -0500, Daniel Convissor wrote:
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.

There were two issues here (IIRC):
a) People returning non-variables by references. In this case, I agree with you I'm pretty sure we added an E_STRICT.
b) A function which returned a variable by reference couldn't be returned by reference. I think this one is probably OK to code.


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to