ID: 43576
Updated by: [EMAIL PROTECTED]
Reported By: lunter at interia dot pl
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 6CVS-2007-12-12 (CVS)
New Comment:
That's not going to happen
Previous Comments:
------------------------------------------------------------------------
[2007-12-12 08:52:45] lunter at interia dot pl
Description:
------------
I would be nice if PHP 6.x can pass no-variables by reference.
For example: strtoupper on GPC arrays using array_walk_recursive.
Reproduce code:
---------------
<?
array_walk_recursive(array(&$_GET,&$_POST,&$_COOKIE),create_function('&$v','$v=strtoupper($v);'));
?>
Expected result:
----------------
Like now:
<?
array_walk_recursive($gpc=array(&$_GET,&$_POST,&$_COOKIE),create_function('&$v','$v=strtoupper($v);'));
unset($gpc);
?>
Actual result:
--------------
Fatal error: Only variables can be passed by reference
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43576&edit=1