php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73256 Missing documented return vaue for array_sum([])
Submitted: 2016-10-06 09:05 UTC Modified: 2016-10-06 09:57 UTC
From: lennaertvanderlinden at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Arrays related
PHP Version: 5.6.26 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: lennaertvanderlinden at gmail dot com
New email:
PHP Version: OS:

 

 [2016-10-06 09:05 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-06 09:30 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: Arrays related -Assigned To: +Assigned To: cmb
 [2016-10-06 09:57 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=340330
Log: Fix #73256: Missing documented return vaue for array_sum([])
 [2016-10-06 09:57 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2016-10-06 09:57 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:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=db17573b4f356c522e818f17ab02018c34049319
Log: Fix #73256: Missing documented return vaue for array_sum([])
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 22:01:31 2024 UTC