From 01adf8724e0b328ce3f50cb4d460e6124a03b314 Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Fri, 9 Apr 2010 14:04:21 +0000 Subject: [PATCH] Fixed PHP bug #51520 (strict-parameter of array_search() and object-identity) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297745 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/array-search.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reference/array/functions/array-search.xml b/reference/array/functions/array-search.xml index e38a0c8f7f..c1c9cd5ef2 100644 --- a/reference/array/functions/array-search.xml +++ b/reference/array/functions/array-search.xml @@ -48,9 +48,12 @@ If the third parameter strict is set to &true; - then the array_search function will also check the + then the array_search function will search for + identical elements in the + haystack. This means it will also check the types of the - needle in the haystack. + needle in the haystack, + and objects must be the same instance.