Re: [PHP-DEV] php5 method return reference error?

2003-11-13 Thread walt boring
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

[PHP-DEV] php5 method return reference error?

2003-11-13 Thread Walt Boring
Howdy, I'm playing with php5 (from cvs), and came accross a strange error that doesn't happen with php4. Maybe someone can shed some light on this for me? I get the error Fatal error: Only variables or references can be returned by reference in /home/waboring/devel/html/test.php on line 11

Re: [PHP-DEV] php5 method return reference error?

2003-11-13 Thread Derick Rethans
On Thu, 13 Nov 2003, Analysis Solutions wrote: The thing is, as I understand it, references are referring to a variable. Your example doesn't have a variable to refer to. If I misunderstand what's going on, I trust someone on the list will correct me. Your assesment is right. BUT, it is

Re: [PHP-DEV] php5 method return reference error?

2003-11-13 Thread Analysis Solutions
Howdy: On Thu, Nov 13, 2003 at 08:10:12PM +0100, Derick Rethans wrote: Your assesment is right. BUT, it is indeed quite a huge BC break and people already said that it is going to be addressed (AFAIK Zeev mentioned that). I've heard on several occasions, some fairly recently, that it won't.

[PHP-DEV] php5 method return reference error?

2003-11-12 Thread Walter A. Boring IV
Howdy, I'm playing with php5 (from cvs), and came accross a strange error that doesn't happen with php4. Maybe someone can shed some light on this for me? I get the error Fatal error: Only variables or references can be returned by reference in /home/waboring/devel/html/test.php on line 11

Re: [PHP-DEV] php5 method return reference error?

2003-11-12 Thread Analysis Solutions
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