Annotation of embedaddon/php/ext/standard/tests/strings/bug25671.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #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--
! 19: a: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.";}
! 20: a: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.";}
! 21: a: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.";}
! 22: a: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:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>