#45781 [Bgs]: array is only a work around but no solution

[email protected] ("Ultrasick at gmx dot de")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45781
 User updated by:  Ultrasick at gmx dot de
-Summary:          request: more than 1 parameter for userdata in
                   function "array_walk"
 Reported By:      Ultrasick at gmx dot de
 Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: irrelevant
 PHP Version:      5.2.6
 New Comment:

yes I am doing that at the moment as a work-around ... packing the data
in an array and unpacking it again inside the function. But why is this
a bogus feature request?


Previous Comments:
------------------------------------------------------------------------

[2008-08-11 18:57:09] [email protected]

You can simply use an array for your data items...

------------------------------------------------------------------------

[2008-08-11 03:56:38] Ultrasick at gmx dot de

changed summary because of wrong word in it

------------------------------------------------------------------------

[2008-08-11 03:55:27] Ultrasick at gmx dot de

Description:
------------
The syntax of the function "array_walk" is currently as below:

bool array_walk(array &$array, callback $funcname [, mixed $userdata])

It would be an improvement if there would be more than 1 parameter for
the user data available. Similar like for the array_merge function:

bool array_walk(array &$array, callback $funcname [, mixed $userdata1
[, mixed $userdata2 [, mixed $...]]])



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45781&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.