Re: $obj = new foo() patch

From: Date: Fri, 10 Nov 2000 12:07:32 +0000
Subject: Re: $obj = new foo() patch
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-37673@lists.php.net to get a copy of this message
PHP 4.0.4 will be the first version of PHP that does not allow you to send anything by reference unless it is a variable (as opposed to a function call return value, for instance).
this does not work anymore! is this supposed not to work anymore regardless of what a method returns? $foo->foo($foo2->foo()); if so it should be documented, it is unexpected behaviour and I don´t understand it at all, don´t you agree that only moving... $foo->foo($foo2->foo()); to... $foo_tmp=&$foo2->foo(); $foo->foo($foo_tmp); is a step backwards in language? if it´s not intended, it´s a bug again... andré

« previous php.dev (#37673) next »