php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62471 Documentation for array_search misses 5.3 changes
Submitted: 2012-07-03 15:46 UTC Modified: 2012-07-20 09:04 UTC
From: phillip dot berndt at googlemail dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-07-03 15:46 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-20 09:04 UTC] 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-20 09:04 UTC] aharvey@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.

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.
 [2012-07-20 09:04 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 21:01:32 2024 UTC