xref: /PHP-7.3/ext/standard/tests/array/bug67693.phpt (revision da3add26)
1--TEST--
2Bug #67693 - incorrect push to empty array
3--FILE--
4<?php
5
6$array = array(-1 => 0);
7
8array_pop($array);
9
10array_push($array, 0);
11array_push($array, 0);
12
13var_dump($array);
14
15echo"\nDone";
16?>
17--EXPECT--
18array(2) {
19  [0]=>
20  int(0)
21  [1]=>
22  int(0)
23}
24
25Done
26