xref: /PHP-8.2/ext/standard/tests/array/bug69166.phpt (revision 70bd5006)
1--TEST--
2Fixed #69166 (Assigning array_values() to array does not reset key counter)
3--FILE--
4<?php
5
6$array = [0];
7$ar = array_values($array);
8$ar[] = 1;
9var_dump($ar);
10?>
11--EXPECT--
12array(2) {
13  [0]=>
14  int(0)
15  [1]=>
16  int(1)
17}
18