Doc #73256 [Opn->Ver]: Missing documented return vaue for array_sum([])
| From: | cmb@php.net | Date: | Thu, 06 Oct 2016 09:30:29 +0000 |
| Subject: | Doc #73256 [Opn->Ver]: Missing documented return vaue for array_sum([]) | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13993@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73256&edit=1
ID: 73256
Updated by: cmb@php.net
Reported by: lennaertvanderlinden at gmail dot com
Summary: Missing documented return vaue for array_sum([])
-Status: Open
+Status: Verified
Type: Documentation Problem
-Package: Documentation problem
+Package: Arrays related
PHP Version: 5.6.26
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-10-06 09:05:49] lennaertvanderlinden at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-sum
---
The documentation does not explicitly state the return value for array_sum when an empty array is
given as input.
Expected result:
----------------
A line documenting that the return value of array_sum for an empty is 0, e.g.:
If the input array is empty, then return value is 0.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73256&edit=1