xref: /php-src/ext/standard/tests/array/bug67693.phpt (revision 67320282)
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  [-1]=>
20  int(0)
21  [0]=>
22  int(0)
23}
24
25Done
26