PHP 4.0 Bug #8367 Updated: Wordwrap not cutting correctly

From: Date: Thu, 18 Jan 2001 21:48:19 +0000
Subject: PHP 4.0 Bug #8367 Updated: Wordwrap not cutting correctly
Groups: php.dev 
Request: Send a blank email to php-dev+get-44512@lists.php.net to get a copy of this message
ID: 8367 Updated by: derick Reported By: millz@incogen.com Old-Status: Assigned Status: Closed Bug Type: Strings related Assigned To: derick Comments: Fixed in CVS Previous Comments: --------------------------------------------------------------------------- [2001-01-08 13:31:38] derick@php.net Adding this to my TODO list. --------------------------------------------------------------------------- [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

« previous php.dev (#44512) next »