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--EXPECT--
19a:4:{i:0;s:19:"This is strung one.";i:1;s:19:"This is strung two.";i:2;a:2:{i:0;s:23:"This is another string.";i:1;s:22:"This is a last string.";}i:3;s:22:"This is a last strung.";}
20a:4:{i:0;s:19:"This is strung one.";i:1;s:19:"This is strung two.";i:2;a:2:{i:0;s:23:"This is another string.";i:1;s:22:"This is a last string.";}i:3;s:22:"This is a last strung.";}
21a:4:{i:0;s:16:"Thisisstringone.";i:1;s:16:"Thisisstringtwo.";i:2;a:2:{i:0;s:23:"This is another string.";i:1;s:22:"This is a last string.";}i:3;s:18:"Thisisalaststring.";}
22a:4:{i:0;s:16:"Thisisstringone.";i:1;s:16:"Thisisstringtwo.";i:2;a:2:{i:0;s:23:"This is another string.";i:1;s:22:"This is a last string.";}i:3;s:18:"Thisisalaststring.";}
23