1--TEST--
2Bug #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;
7var_dump(substr_replace($a, 1, 1, $c));
8?>
9--EXPECT--
10array(2) {
11  [0]=>
12  string(2) "11"
13  [1]=>
14  string(2) "21"
15}
16