#47994 [NEW]: array_unique, removing non uniques
| From: | bstrick at gmail dot com | Date: | Thu, 16 Apr 2009 20:53:00 +0000 |
| Subject: | #47994 [NEW]: array_unique, removing non uniques | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-135898@lists.php.net to get a copy of this message | ||
From: bstrick at gmail dot com
Operating system: Windows
PHP version: 5.2.9
PHP Bug Type: *General Issues
Bug description: array_unique, removing non uniques
Description:
------------
Numbers are considered the same if the first 15 or more digits are the
same.
Reproduce code:
---------------
<?
$test = array(3164843838577683662, 3164843838577682136);
echo count($test);
$test = array_unique($test);
echo count($test);
?>
Expected result:
----------------
22
Actual result:
--------------
21
--
Edit bug report at http://bugs.php.net/?id=47994&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47994&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47994&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47994&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47994&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47994&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47994&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47994&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47994&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47994&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47994&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47994&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47994&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47994&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47994&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47994&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47994&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47994&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47994&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47994&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47994&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47994&r=mysqlcfg