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é