Re: [PHP-DEV] php 4.1 From: Zeev Suraski (zeev <email protected>)
Date: 11/14/00

At 14:39 14-11-00, André Langhorst wrote:
>just to name such an issue regarding the CORE language: I thought
>returing variables by references originating from methods is supported
>and ought to work, because it worked for me all the time and nothing
>negative is said in the documentation (you could argue that it isn't
>documented at all, what would criticize the documentation ([1] either it
>should tell us not to do this or [2] it should tell us that it's
>possible in unawareness of possible failures)
>now zeev told me that it never should have worked properly at all, thus
>PHP has been UNSTABLE for many months

For the record, that's not what I said.
Return references from methods is supported, just as returning reference
from functions is supported. However, you can't pass function return
values by reference - you can only pass variables by reference.

Zeev

--
Zeev Suraski <zeev <email protected>>
CTO, Zend Technologies Ltd. http://www.zend.com/

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