1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
--TEST-- Bug #71190 (substr_replace converts integers in original $search array to strings) --FILE-- <?php $b = [0, 1, 2]; var_dump($b); substr_replace("test", $b, "1"); var_dump($b); ?> --EXPECT-- array(3) { [0]=> int(0) [1]=> int(1) [2]=> int(2) } array(3) { [0]=> int(0) [1]=> int(1) [2]=> int(2) }