mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
833f4150a1
- could someone please fix var_export2.phpt? NUL is corrupted, can't fix here
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)
|
|
}
|