|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70655 misleading function summary
Submitted: 2015-10-07 02:46 UTC Modified: 2019-04-01 19:21 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: lucas at threeam dot com dot au Assigned: girgias (profile)
Status: Closed Package: Arrays related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2015-10-07 02:46 UTC] lucas at threeam dot com dot au
From manual page:

says, incorrectly "The number of parameters that the callback function accepts should match the number of arrays passed to the array_map()"

but should be "The number of parameters that the callback function accepts should be one fewer than the number of arrays passed to array_map()"
or something that differentiates the first array from additional array arguments.


doc-fix-70655 (last revision 2019-01-20 17:56 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 17:25 UTC]
-Package: Documentation problem +Package: Arrays related
 [2019-01-11 05:53 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: girgias
 [2019-01-20 17:56 UTC]
The following patch has been added/updated:

Patch Name: doc-fix-70655
Revision:   1548006976
 [2019-02-12 16:27 UTC]
@girgias Your patch doesn't like quite right, since array_map()
expects at least two parameters, so $... is not optional.  Even if
the choice="opt" would be removed, the $... would still be easily
misleading, since a variadic parameter (...$params) still could be
 [2019-02-12 16:29 UTC]
@cmb Yes I've realised but didn't go back to it.
Will try to do fix it this evening.
 [2019-02-12 21:10 UTC]
Updated my patch at:

Can you have a look @cmb?
 [2019-04-01 19:15 UTC]
Automatic comment from SVN on behalf of girgias
Log: Fix Doc Bug #70655
 [2019-04-01 19:21 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Aug 20 18:01:31 2019 UTC