diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-04-03 18:08:40 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-04-03 18:08:40 +0000 |
commit | ca10457a581ea760bfb8307489013f44bf8118ff (patch) | |
tree | f4e1d0723fbbee912c1d4d588a9e0b5820df6c06 /ext/standard/tests/strings/chunk_split.phpt | |
parent | 1d25fc5c7b62f763b66a4c745d5e29894419aca9 (diff) | |
download | php-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.phpt | 3 |
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 |