|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-01 12:23 UTC] joc at presence-pc dot com
[2005-04-03 16:58 UTC] tony2001@php.net
[2005-04-03 20:10 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 00:00:02 2025 UTC |
Description: ------------ Hi, I've just noticed a change in chunk_split behaviour in 4.3.11 which breaks my application. Regards, Jocelyn Reproduce code: --------------- With the following script : $test=chunk_split('test',10,"|end"); echo $test; In 4.3.10 : test|end In 4.3.11 : test (ie "string end" in 4.3.10 is inserted at the end of the "string body" even if the word is smaller than the chunklen) However if the word is greater than the chunklen 4.3.10 and 4.3.11 behaves the same. Expected result: ---------------- test|end Actual result: -------------- test