PHP 4.0 Bug #4116 Updated: array_walk allows userdata to be passed by ref but only half works
| From: | Bug Database | Date: | Thu, 15 Jun 2000 19:25:01 +0000 |
| Subject: | PHP 4.0 Bug #4116 Updated: array_walk allows userdata to be passed by ref but only half works | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21464@lists.php.net to get a copy of this message | ||
ID: 4116
Updated by: venaas
Reported By: alexphpbug@blamey.freeserve.co.uk
Status: Closed
Bug Type: Misbehaving function
Assigned To: venaas
Comments:
It works like it should I think. What happens is that the array_walk
function gets a copy of $myvar. myfunc then gets a reference to
this copy. If you call array_walk with &$myvar it does what you want.
Stig
Full Bug description available at: http://bugs.php.net/version4/?id=4116