summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug42208.phpt
blob: 72488a93d87d63d729302fb760c2a191fd58a982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #42208 (substr_replace() crashes when the same array is passed more than once)
--FILE--
<?php
$a = array(1, 2);
$c = $a;
var_dump(substr_replace($a, 1, 1, $c));
?>
--EXPECT--
array(2) {
  [0]=>
  string(2) "11"
  [1]=>
  string(2) "21"
}