#34723 [NEW]: array_count_values() strips leading zeroes

From: Date: Tue, 04 Oct 2005 01:19:13 +0000
Subject: #34723 [NEW]: array_count_values() strips leading zeroes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85961@lists.php.net to get a copy of this message
From: gimmelol at netcourrier dot com Operating system: WinXP PHP version: 5.1.0RC1 PHP Bug Type: Arrays related Bug description: array_count_values() strips leading zeroes 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 bug report at http://bugs.php.net/?id=34723&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34723&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34723&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34723&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34723&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34723&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34723&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34723&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34723&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34723&r=support Expected behavior: http://bugs.php.net/fix.php?id=34723&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34723&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34723&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34723&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34723&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34723&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34723&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34723&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34723&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34723&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34723&r=mysqlcfg

« previous php.bugs (#85961) next »