1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
--TEST-- Fixed #69166 (Assigning array_values() to array does not reset key counter) --FILE-- <?php $array = [0]; $ar = array_values($array); $ar[] = 1; var_dump($ar); ?> --EXPECT-- array(2) { [0]=> int(0) [1]=> int(1) }