1--TEST-- 2Bug #67169: array_splice all elements, then []= gives wrong index 3--FILE-- 4<?php 5 6$array = array('a', 'b'); 7array_splice($array, 0, 2); 8$array[] = 'c'; 9var_dump($array); 10 11$array = array('a', 'b'); 12array_shift($array); 13array_shift($array); 14$array[] = 'c'; 15var_dump($array); 16 17?> 18--EXPECT-- 19array(1) { 20 [0]=> 21 string(1) "c" 22} 23array(1) { 24 [0]=> 25 string(1) "c" 26} 27