1--TEST--
2Bug #25671 (subarrays not copied correctly)
3--FILE--
4<?php
5  $arr = array(
6    "This is string one.",
7    "This is string two.",
8    array(
9        "This is another string.",
10        "This is a last string."),
11    "This is a last string.");
12
13  echo serialize(str_replace("string", "strung", $arr)) . "\n";
14  echo serialize(str_replace("string", "strung", $arr)) . "\n";
15  echo serialize(str_replace(" ", "", $arr)) . "\n";
16  echo serialize(str_replace(" ", "", $arr)) . "\n";
17?>
18--EXPECTF--
19Warning: Array to string conversion in %s on line %d
20a:4:{i:0;s:19:"This is strung one.";i:1;s:19:"This is strung two.";i:2;s:5:"Array";i:3;s:22:"This is a last strung.";}
21
22Warning: Array to string conversion in %s on line %d
23a:4:{i:0;s:19:"This is strung one.";i:1;s:19:"This is strung two.";i:2;s:5:"Array";i:3;s:22:"This is a last strung.";}
24
25Warning: Array to string conversion in %s on line %d
26a:4:{i:0;s:16:"Thisisstringone.";i:1;s:16:"Thisisstringtwo.";i:2;s:5:"Array";i:3;s:18:"Thisisalaststring.";}
27
28Warning: Array to string conversion in %s on line %d
29a:4:{i:0;s:16:"Thisisstringone.";i:1;s:16:"Thisisstringtwo.";i:2;s:5:"Array";i:3;s:18:"Thisisalaststring.";}
30