summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/chunk_split.phpt
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-04-03 18:08:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-04-03 18:08:40 +0000
commitca10457a581ea760bfb8307489013f44bf8118ff (patch)
treef4e1d0723fbbee912c1d4d588a9e0b5820df6c06 /ext/standard/tests/strings/chunk_split.phpt
parent1d25fc5c7b62f763b66a4c745d5e29894419aca9 (diff)
downloadphp-git-ca10457a581ea760bfb8307489013f44bf8118ff.tar.gz
Fixed bug #32530 (chunk_split() does not append endstr if chunklen is
longer then the original string).
Diffstat (limited to 'ext/standard/tests/strings/chunk_split.phpt')
-rw-r--r--ext/standard/tests/strings/chunk_split.phpt3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/chunk_split.phpt b/ext/standard/tests/strings/chunk_split.phpt
index 6aec9fd24d..b6bed3ab48 100644
--- a/ext/standard/tests/strings/chunk_split.phpt
+++ b/ext/standard/tests/strings/chunk_split.phpt
@@ -5,6 +5,7 @@ chunk_split() function
echo chunk_split('abc', 1, '-')."\n";
echo chunk_split('foooooooooooooooo', 5)."\n";
echo chunk_split(str_repeat('X', 2*76))."\n";
+echo chunk_split("test", 10, "|end") . "\n";
?>
--EXPECT--
a-b-c-
@@ -15,3 +16,5 @@ oo
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+
+test|end