php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76668 array_walk() never returns FALSE
Submitted: 2018-07-26 10:15 UTC Modified: 2018-07-26 14:38 UTC
From: steffen at haugk dot co dot uk Assigned: cmb (profile)
Status: Closed Package: Arrays related
PHP Version: 7.1.20 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: steffen at haugk dot co dot uk
New email:
PHP Version: OS:

 

 [2018-07-26 10:15 UTC] steffen at haugk dot co dot uk
Description:
------------
The documentation of array_walk says

Returns TRUE on success or FALSE on failure.

Would it be helpful to explain in the documentation what constitutes a failure? 

Test script:
---------------
%


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-26 10:28 UTC] cmb@php.net
-Summary: Question on return value of array_walk +Summary: array_walk() never returns FALSE -Status: Open +Status: Verified -Package: Documentation problem +Package: Arrays related
 [2018-07-26 10:28 UTC] cmb@php.net
From looking at the implementation[1], apparently array_walk()
never returns FALSE.

[1] <https://github.com/php/php-src/blob/php-7.2.8/ext/standard/array.c#L1502-L1527>
 [2018-07-26 14:38 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=345396
Log: Fix #76668: array_walk() never returns FALSE
 [2018-07-26 14:38 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-07-26 14:38 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=d3ab3ae75d1d41160db79c8dc71107a9ddb7b3cd
Log: Fix #76668: array_walk() never returns FALSE
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 22:01:30 2024 UTC