Doc #62471 [Opn->Csd]: Documentation for array_search misses 5.3 changes
| From: | aharvey@php.net | Date: | Fri, 20 Jul 2012 09:04:32 +0000 |
| Subject: | Doc #62471 [Opn->Csd]: Documentation for array_search misses 5.3 changes | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8609@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62471&edit=1
ID: 62471
Updated by: aharvey@php.net
Reported by: phillip dot berndt at googlemail dot com
Summary: Documentation for array_search misses 5.3 changes
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
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.
In general, we're not adding changelog entries for the parameter handling rationalisations in
PHP 5.3.0, but given the earlier changelog entry, I've added one clarifying the situation here.
Previous Comments:
------------------------------------------------------------------------
[2012-07-20 09:04:30] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=326728
Log: Fix doc bug #62471 (Documentation for array_search misses 5.3 changes).
------------------------------------------------------------------------
[2012-07-03 15:46:14] phillip dot berndt at googlemail dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-search#refsect1-
function.array-search-returnvalues
---
As of PHP 5.3, array_search() does again return NULL if $haystack is not an
array. This was reported as an bug in bug #49657 but marked invalid because this
change apparently was intentional.
The documentation needs to be updated, especially since it claims in the
changelog that
> 4.2.0
> Prior to PHP 4.2.0, array_search() returns NULL on failure instead of FALSE.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62471&edit=1