|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-17 22:50 UTC] philip@php.net
[2002-03-18 02:27 UTC] derick@php.net
[2002-03-31 23:53 UTC] philip@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 10 23:00:02 2025 UTC |
I am calling array_search. I expect it to return FALSE if the needle value is not in the haystack (as documented) -- it's not happening. I searched the bug database and found this bug (#13567) reported for v. 4.0.5 and marked as closed, but the bug is still present in 4.1.2. Script that demonstrates the problem: $result = array_search( "M", array( "A", "Z" ) ); if ( $result === false ) { echo "REALLY FALSE"; } else { echo "SOMETHING ELSE"; } I expect the script to output "REALLY FALSE", instead it outputs "SOMETHING ELSE". Thanks.