From:             lunter at interia dot pl
Operating system: all
PHP version:      6CVS-2007-12-12 (CVS)
PHP Bug Type:     Feature/Change Request
Bug description:  no-variables passing by reference

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 bug report at http://bugs.php.net/?id=43576&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43576&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43576&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43576&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43576&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43576&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43576&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43576&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43576&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43576&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43576&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43576&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43576&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43576&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43576&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43576&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43576&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43576&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43576&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43576&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43576&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43576&r=mysqlcfg

Reply via email to