xref: /PHP-8.2/ext/standard/tests/array/bug38464.phpt (revision 782352c5)
1--TEST--
2Bug #38464 (array_count_values() mishandles numeric strings)
3--FILE--
4<?php
5$array = array('-000', ' 001', 1, ' 123', '+123');
6var_dump(array_count_values($array));
7?>
8--EXPECT--
9array(5) {
10  ["-000"]=>
11  int(1)
12  [" 001"]=>
13  int(1)
14  [1]=>
15  int(1)
16  [" 123"]=>
17  int(1)
18  ["+123"]=>
19  int(1)
20}
21