Re: [PHP-DEV] $obj = new foo() patch From: André Langhorst (A.Langhorst <email protected>)
Date: 11/10/00

> 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é

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>