#47994 [Opn]: array_unique, removing non uniques
| From: | bstrick at gmail dot com | Date: | Thu, 16 Apr 2009 21:28:52 +0000 |
| Subject: | #47994 [Opn]: array_unique, removing non uniques | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135900@lists.php.net to get a copy of this message | ||
ID: 47994
User updated by: bstrick at gmail dot com
Reported By: bstrick at gmail dot com
Status: Open
-Bug Type: *General Issues
+Bug Type: Arrays related
Operating System: Windows
PHP Version: 5.2.9
New Comment:
Just wanted to change the category to proper one.
Previous Comments:
------------------------------------------------------------------------
[2009-04-16 20:53:00] bstrick at gmail dot com
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 this bug report at http://bugs.php.net/?id=47994&edit=1