|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-12 09:31 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Mar 10 05:00:01 2026 UTC |
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