#32530 [Asn->Csd]: Chunk_split changed behaviour in 4.3.11
| From: | iliaa@php.net | Date: | Sun, 03 Apr 2005 18:10:01 +0000 |
| Subject: | #32530 [Asn->Csd]: Chunk_split changed behaviour in 4.3.11 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76258@lists.php.net to get a copy of this message | ||
ID: 32530
Updated by: iliaa@php.net
Reported By: joc at presence-pc dot com
-Status: Assigned
+Status: Closed
Bug Type: Strings related
Operating System: Linux
PHP Version: 4.3.11
Assigned To: ilia
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-04-03 16:58:46] tony2001@php.net
Ilia, take a look at this, plz.
It was your patch that breaks it.
------------------------------------------------------------------------
[2005-04-01 12:23:09] joc at presence-pc dot com
.
------------------------------------------------------------------------
[2005-04-01 09:13:37] joc at presence-pc dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32530&edit=1