From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.2.3 PHP Bug Type: Scripting Engine problem Bug description: problem with array_search function
array_search will return "THE POSITION of the NEEDLE" when a needle is found in an array and return "FALSE" when not found. The problem will occur when the NEEDLE is found to be at the first position of an array which will return a "0", a value that is equipvalent to "FALSE" though the NEEDLE has been successfully found. -- Edit bug report at http://bugs.php.net/?id=20765&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20765&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20765&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20765&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20765&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20765&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20765&r=support Expected behavior: http://bugs.php.net/fix.php?id=20765&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20765&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20765&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20765&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20765&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20765&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20765&r=isapi