On Thu, 13 Nov 2003, Michael Walter wrote:

> Not sure I'm missing something, but I fail to see the problem: Doesn't
> PHP 5 use object references anyway? So function pla() { return new
> Foo(); } would return a reference anyway, instead of copying the object
> itself over?

No, it's not a reference, but an object handle which still can be passed
as reference (but it's quite unuseful to do).

> So just removing & should fix the problem, as long as you're dealing
> with objects.

Yup.

Derick

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to