Re: php5 method return reference error?

From: Date: Thu, 13 Nov 2003 18:22:31 +0000
Subject: Re: php5 method return reference error?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-5437@lists.php.net to get a copy of this message
Analysis & Solutions wrote:
Hi Walter: On Wed, Nov 12, 2003 at 10:13:10PM -0800, Walter A. Boring IV wrote:
"Fatal error: Only variables or references can be returned by reference in /home/waboring/devel/html/test.php on line 11"
This is the expected behavior. This has been discussed in the bugs database and on this list. I even started a thread on this topic today. This group is archived in the following two places: http://groups.google.com/groups?group=mailing.www.php-dev http://marc.theaimsgroup.com/?l=php-dev The topic is discussed in bug 24687: http://bugs.php.net/bug.php?id=24687 Enjoy, --Dan This is very sad that the only real argument in the bug against fixing it was
that it was hard. Come on! This is such a fundamental thing to be able to do. function &foo() { return something_else(); } How can they say this won't be fixed? I just don't get it. This is going to make a lot of php folks upset, and make it much more painfull to upgrade to php5. I work on several projects, commercial and non-commercial, that this one bug will prevent me from moving to php5 without a lot of changing of classes and code, let alone the re-qualification of the applications due to this change. This is just sad. Walt

« previous php.internals (#5437) next »