#34723 [Opn->Asn]: array_count_values() strips leading zeroes
| From: | sniper@php.net | Date: | Tue, 04 Oct 2005 08:41:24 +0000 |
| Subject: | #34723 [Opn->Asn]: array_count_values() strips leading zeroes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85979@lists.php.net to get a copy of this message | ||
ID: 34723
Updated by: sniper@php.net
Reported By: gimmelol at netcourrier dot com
-Status: Open
+Status: Assigned
Bug Type: Arrays related
-Operating System: WinXP
+Operating System: *
-PHP Version: 5.1.0RC1
+PHP Version: 5CVS-2005-10-04 (CVS)
-Assigned To:
+Assigned To: tony2001
New Comment:
Still broken.
Previous Comments:
------------------------------------------------------------------------
[2005-10-04 03:19:12] gimmelol at netcourrier dot com
Description:
------------
This bug has already been reported and marked bogus here:
http://bugs.php.net/bug.php?id=33279
but it is still reproducible in 5.1RC1 and recent snapshots
Reproduce code:
---------------
<?php
var_dump(array_count_values(array("012345")));
?>
Expected result:
----------------
array(1) {
["012345"]=>
int(1)
}
Actual result:
--------------
array(1) {
[12345]=>
int(1)
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34723&edit=1