PHP 4.0 Bug #8367: Wordwrap not cutting correctly

From: Date: Thu, 21 Dec 2000 22:02:37 +0000
Subject: PHP 4.0 Bug #8367: Wordwrap not cutting correctly
Groups: php.dev 
Request: Send a blank email to php-dev+get-42082@lists.php.net to get a copy of this message
From: millz@incogen.com Operating system: Solaris 7 PHP version: 4.0.3pl1 PHP Bug Type: Strings related Bug description: Wordwrap not cutting correctly 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 -- Edit Bug report at: http://bugs.php.net/?id=8367&edit=1

« previous php.dev (#42082) next »