PHP 4.0 Bug #8367 Updated: Wordwrap not cutting correctly

From: Date: Mon, 08 Jan 2001 18:28:35 +0000
Subject: PHP 4.0 Bug #8367 Updated: Wordwrap not cutting correctly
Groups: php.dev 
Request: Send a blank email to php-dev+get-43418@lists.php.net to get a copy of this message
ID: 8367 Updated by: cynic Reported By: millz@incogen.com Status: Open Bug Type: Strings related Assigned To: Comments: confirmed in mod_php4 php4-200101080345 Previous Comments: --------------------------------------------------------------------------- [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 (#43418) next »