php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #45781 request: more than 1 parameter for userdata in function "array_walk"
Submitted: 2008-08-11 03:55 UTC Modified: 2008-08-11 23:02 UTC
From: Ultrasick at gmx dot de Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.6 OS: irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Ultrasick at gmx dot de
New email:
PHP Version: OS:

 

 [2008-08-11 03:55 UTC] 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 $...]]])


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-11 03:56 UTC] Ultrasick at gmx dot de
changed summary because of wrong word in it
 [2008-08-11 18:57 UTC] johannes@php.net
You can simply use an array for your data items...
 [2008-08-11 23:00 UTC] Ultrasick at gmx dot de
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?
 [2008-08-11 23:02 UTC] Ultrasick at gmx dot de
sorry, didn't want to change the summary
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Sep 27 22:01:26 2024 UTC