php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50919 array_reduce prototype update
Submitted: 2010-02-03 00:52 UTC Modified: 2010-02-03 09:52 UTC
From: cr at example dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.3SVN-2010-02-03 (SVN) OS:
Private report: No CVE-ID: None
 [2010-02-03 00:52 UTC] cr at example dot com
Description:
------------
the prototype in the docs should be updated

$initial should now be mixed, not int

Reproduce code:
---------------
---
From manual page: function.array-reduce#Description
---
Description
mixed array_reduce ( array $input , callback $function [, int $initial ] )

http://svn.php.net/viewvc?view=revision&revision=265185


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-03 09:45 UTC] svn@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=294358
Log: array_reduce initial parameter mixed as of 5.3.0. Closes #50919
 [2010-02-03 09:52 UTC] salathe@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.

The prototype has been changed with a changelog entry added. Thanks!
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 07:00:02 2026 UTC