Doc #70655 [Com]: misleading function summary
| From: | girgias@php.net | Date: | Tue, 12 Feb 2019 16:29:51 +0000 |
| Subject: | Doc #70655 [Com]: misleading function summary | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16405@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70655&edit=1
ID: 70655
Comment by: girgias@php.net
Reported by: lucas at threeam dot com dot au
Summary: misleading function summary
Status: Assigned
Type: Documentation Problem
Package: Arrays related
PHP Version: Irrelevant
Assigned To: girgias
Block user comment: N
Private report: N
New Comment:
@cmb Yes I've realised but didn't go back to it.
Will try to do fix it this evening.
Previous Comments:
------------------------------------------------------------------------
[2019-02-12 16:27:24] cmb@php.net
@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
omitted.
------------------------------------------------------------------------
[2019-01-20 17:56:16] girgias@php.net
The following patch has been added/updated:
Patch Name: doc-fix-70655
Revision: 1548006976
URL: https://bugs.php.net/patch-display.php?bug=70655&patch=doc-fix-70655&revision=1548006976
------------------------------------------------------------------------
[2015-10-07 02:46:41] lucas at threeam dot com dot au
Description:
------------
---
From manual page: http://www.php.net/function.array-map
---
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70655&edit=1