#49167 [NEW]: Bug in in_array() function
From: dos at null-squad dot com Date: Wed, 05 Aug 2009 07:43:08 +0000 Subject: #49167 [NEW]: Bug in in_array() function Groups: php.bugs Request: Send a blank email to php-bugs+get-140670@lists.php.net to get a copy of this message
From: dos at null-squad dot com
Operating system: CentOS
PHP version: 5.3.0
PHP Bug Type: Arrays related
Bug description: Bug in in_array() function
Description:
------------
in_array() returns true for in_array('a', array('a'=>true)) instead of
false.
Reproduce code:
---------------
var_dump(
in_array(
'a',
array('a'=>true)
)
);
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
--
Edit bug report at http://bugs.php.net/?id=49167&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49167&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49167&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49167&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49167&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49167&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49167&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49167&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49167&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49167&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49167&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49167&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49167&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49167&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49167&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49167&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49167&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49167&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49167&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49167&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49167&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49167&r=mysqlcfg
Thread (2 messages)
| « previous | php.bugs (#140670) | next » |
|---|