xref: /PHP-8.1/ext/standard/tests/array/bug69413.phpt (revision 94bea670)
1--TEST--
2Bug #69413: Warning in array_count_values() about array values not being string/int
3--FILE--
4<?php
5
6$array = ['a', 'b'];
7$ref =& $array[0];
8
9var_dump(array_count_values($array));
10
11?>
12--EXPECT--
13array(2) {
14  ["a"]=>
15  int(1)
16  ["b"]=>
17  int(1)
18}
19