#34723 [Asn->Csd]: array_count_values() strips leading zeroes
| From: | tony2001@php.net | Date: | Tue, 04 Oct 2005 20:50:37 +0000 |
| Subject: | #34723 [Asn->Csd]: array_count_values() strips leading zeroes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86028@lists.php.net to get a copy of this message | ||
ID: 34723
Updated by: tony2001@php.net
Reported By: gimmelol at netcourrier dot com
-Status: Assigned
+Status: Closed
Bug Type: Arrays related
Operating System: *
PHP Version: 5CVS-2005-10-04 (CVS)
Assigned To: tony2001
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-10-04 10:41:22] sniper@php.net
Still broken.
------------------------------------------------------------------------
[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