php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78848 Important info about return values is tucked away at the end of fourth example
Submitted: 2019-11-21 07:58 UTC Modified: 2019-12-08 15:19 UTC
From: roy-orbison at devo dot net dot au Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: roy-orbison at devo dot net dot au
New email:
PHP Version: OS:

 

 [2019-11-21 07:58 UTC] roy-orbison at devo dot net dot au
Description:
------------
---
From manual page: https://php.net/function.array-map
---

There's a rather important note at the end of example #4:

"The returned array will preserve the keys of the array argument if and only if exactly one array is passed. If more than one array is passed, the returned array will have sequential integer keys."

This info should be in the main "Return Values" section, and only be referred to by that example.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-08 15:18 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=348465
Log: Fix #78848: Important info about return values is tucked away at the end of fourth example
 [2019-12-08 15:19 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-12-08 15:20 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=5a3608ef464c877b4965b7b8d40275753591ede0
Log: Fix #78848: Important info about return values is tucked away at the end of fourth example
 [2019-12-08 23:56 UTC] mumumu@php.net
Automatic comment from SVN on behalf of mumumu
Revision: http://svn.php.net/viewvc/?view=revision&revision=348470
Log: Fix #78848: Important info about return values is tucked away at the end of fourth example

Bug: https://bugs.php.net/78848 (Open) Important info about return values is tucked away at the end of fourth example
 [2020-02-07 06:04 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=1397ae6df7e79a59fec7b167f7bc1adba415013f
Log: Fix #78848: Important info about return values is tucked away at the end of fourth example
 [2020-12-30 11:59 UTC] nikic@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=b8e51abd187f233fdcad486196e2d92c7b030de9
Log: Fix #78848: Important info about return values is tucked away at the end of fourth example
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC