mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
21 lines
310 B
PHP
21 lines
310 B
PHP
--TEST--
|
|
Bug #38464 (array_count_values() mishandles numeric strings)
|
|
--FILE--
|
|
<?php
|
|
$array = array('-000', ' 001', 1, ' 123', '+123');
|
|
var_dump(array_count_values($array));
|
|
?>
|
|
--EXPECT--
|
|
array(5) {
|
|
[u"-000"]=>
|
|
int(1)
|
|
[u" 001"]=>
|
|
int(1)
|
|
[1]=>
|
|
int(1)
|
|
[u" 123"]=>
|
|
int(1)
|
|
[u"+123"]=>
|
|
int(1)
|
|
}
|