![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #42208 (substr_replace() crashes when the same array is passed more than once) ! 3: --FILE-- ! 4: <?php ! 5: $a = array(1, 2); ! 6: $c = $a; ! 7: var_dump(substr_replace($a, 1, 1, $c)); ! 8: ?> ! 9: --EXPECT-- ! 10: array(2) { ! 11: [0]=> ! 12: string(2) "11" ! 13: [1]=> ! 14: string(2) "21" ! 15: }