Bug #13567: array_search does not return FALSE as documented, if no entry was found

From: Date: Fri, 05 Oct 2001 18:50:57 +0000
Subject: Bug #13567: array_search does not return FALSE as documented, if no entry was found
Groups: php.dev 
Request: Send a blank email to php-dev+get-67368@lists.php.net to get a copy of this message
From: alvarez@st-oneline.net Operating system: Linux 2.2.19 PHP version: 4.0.5 PHP Bug Type: *General Issues Bug description: array_search does not return FALSE as documented, if no entry was found script to reproduce the error quickly: // won't produce output, is not boolean FALSE if (array_search ('a', array ('b')) === FALSE) echo 'is boolean FALSE'; // won't produce output, is not of type boolean if (is_bool (array_search ('a', array ('b')))) echo 'is boolean'; -- Edit bug report at: http://bugs.php.net/?id=13567&edit=1

« previous php.dev (#67368) next »