php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51180 Incorrect description of array_merge parameters
Submitted: 2010-03-02 05:42 UTC Modified: 2010-03-14 23:29 UTC
From: chealer at gmail dot com Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2010-03-02 05:42 UTC] chealer at gmail dot com
Description:
------------
http://ca2.php.net/manual/en/function.array-merge.php
gives synopsis
array array_merge  ( array $array1  [, array $array2  [, array $...  ]] )

There is no parameter named array there, but the parameters section contains

 array

    Variable list of arrays to recursively merge.

but nothing about array2.

I'm not sure how variadic functions should be documented. array_merge_recursive also has this issue.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-14 23:29 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=296209
Log: Fixed bug #51180 (Incorrect description of array_merge parameters)
 [2010-03-14 23:29 UTC] kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2010-03-14 23:29 UTC] kalle@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.

I changed the parameter name from "array" to "..." as its used several other places in the documentation
 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b25e5de2b008b396e069c69d1d37612e752aaff5
Log: Fixed bug #51180 (Incorrect description of array_merge parameters)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC