PHP 4.0 Bug #8367 Updated: Wordwrap not cutting correctly
| From: | derick@php.net | Date: | Mon, 08 Jan 2001 18:31:38 +0000 |
| Subject: | PHP 4.0 Bug #8367 Updated: Wordwrap not cutting correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43420@lists.php.net to get a copy of this message | ||
ID: 8367
Updated by: derick
Reported By: millz@incogen.com
Old-Status: Open
Status: Assigned
Bug Type: Strings related
Assigned To: derick
Comments:
Adding this to my TODO list.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-08 13:28:35] cynic@php.net
confirmed in mod_php4 php4-200101080345
---------------------------------------------------------------------------
[2000-12-21 17:02:37] millz@incogen.com
Calling wordwrap like this:
$sequence = "aaadaaadaaadaaada";
$sequence = wordwrap( $sequence, 4, "n",1);
The n is inserted correctly at the first position (just after pos 3), but is off by +1 for the
remaining inserts.
Sequence becomes:
aaad
aaada
aadaa
ada
Where it should be:
aaad
aaad
aaad
aaad
a
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8367