Bug #66166 [NEW]: in_array() è¿åçå¤æç»ææ¯é误ç
| From: | 290315384 at qq dot com | Date: | Mon, 25 Nov 2013 11:52:14 +0000 |
| Subject: | Bug #66166 [NEW]: in_array() è¿åçå¤æç»ææ¯é误ç | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-182914@lists.php.net to get a copy of this message | ||
From: 290315384 at qq dot com
Operating system: win7
PHP version: master-Git-2013-11-25 (Git)
Package: *General Issues
Bug Type: Bug
Bug description:in_array() è¿åçå¤æç»ææ¯é误ç
Description:
------------
---
From manual page: http://www.php.net/function.in-array
---
PHP version:5.3.13
Package affected:
Test script:
---------------
<?php
$arr = array ('22727824922116425');
var_dump(in_array('22727824922116421',$arr)); //true
var_dump(in_array('22727824922116422',$arr)); //true
//......
var_dump(in_array('22727824922116426',$arr)); //true
var_dump(in_array('22727824922116427',$arr)); //true
var_dump(in_array('22727824922116422',$arr,true)); //false
$arr = array (22727824922116425);
var_dump(in_array(22727824922116422,$arr)); //true
var_dump(in_array(22727824922116422,$arr,true));//true
?>
--
Edit bug report at https://bugs.php.net/bug.php?id=66166&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66166&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66166&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66166&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66166&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66166&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66166&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66166&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66166&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66166&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66166&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66166&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66166&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66166&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66166&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66166&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66166&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66166&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66166&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66166&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66166&r=mysqlcfg