Doc #76668 [Opn->Ver]: array_walk() never returns FALSE

From: Date: Thu, 26 Jul 2018 10:28:09 +0000
Subject: Doc #76668 [Opn->Ver]: array_walk() never returns FALSE
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15929@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76668&edit=1 ID: 76668 Updated by: cmb@php.net Reported by: steffen at haugk dot co dot uk -Summary: Question on return value of array_walk +Summary: array_walk() never returns FALSE -Status: Open +Status: Verified Type: Documentation Problem -Package: Documentation problem +Package: Arrays related PHP Version: 7.1.20 Block user comment: N Private report: N New Comment: 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> Previous Comments: ------------------------------------------------------------------------ [2018-07-26 10:15:34] 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: --------------- % ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76668&edit=1

« previous php.doc.bugs (#15929) next »