xref: /PHP-8.1/ext/standard/tests/array/bug75653.phpt (revision 8c73fc80)
1--TEST--
2Bug #75653: array_values don't work on empty array
3--FILE--
4<?php
5
6$array[] = 'data1';
7unset($array[0]);
8$array = array_values($array);
9$array[] = 'data2';
10$array[] = 'data3';
11var_dump($array);
12
13?>
14--EXPECT--
15array(2) {
16  [0]=>
17  string(5) "data2"
18  [1]=>
19  string(5) "data3"
20}
21