Ask a Question related to PHP Development, Design and Development.
-
Brad Bulger #1
[PHP-DEV] Bug #24687 - can't return non-variable by reference
Is this still open because it's possible that it might somehow be
"fixed"? (though as comments note, it doesn't make any sense,
and in any case, in php 5 the reference is unnecessary for the
most common case of returning a new object)
if the idea is to leave it to see how many votes it gets, that
is understandable. otherwise, it would be helpful to close
it as 'not a bug' so people will know they need to change code.
now it's like game of chicken, all wait to see who blinks :)
thx
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Brad Bulger Guest
-
return local variable as reference -- ok?
Hi all, I have some questions about the return array & reference... function &node_factory() { // local varible $newnode $newnode=array("No",... -
#24687 [Opn->WFx]: Fatal error: Only variables or references can be returned by reference
ID: 24687 Updated by: sniper@php.net Reported By: nologic at pchome dot com dot tw -Status: Open +Status: ... -
#24687 [Ana->Opn]: Fatal error: Only variables or references can be returned by reference
ID: 24687 Updated by: sniper@php.net Reported By: nologic at pchome dot com dot tw -Status: Analyzed +Status: ... -
#24687 [Ana]: Fatal error: Only variables or references can be returned by reference
ID: 24687 Updated by: derick@php.net Reported By: nologic at pchome dot com dot tw Status: Analyzed Bug Type: ... -
#24687 [Opn->Ana]: Fatal error: Only variables or references can be returned by reference
ID: 24687 Updated by: zeev@php.net Reported By: nologic at pchome dot com dot tw -Status: Open +Status: ...



Reply With Quote

