PHP 4.0 Bug #8061: wordwrap

From: Date: Thu, 30 Nov 2000 23:20:34 +0000
Subject: PHP 4.0 Bug #8061: wordwrap
Groups: php.dev 
Request: Send a blank email to php-dev+get-39734@lists.php.net to get a copy of this message
From: al.wo@gmx.de Operating system: Windows NT, Unix PHP version: 4.0.3pl1 PHP Bug Type: Strings related Bug description: wordwrap The function wordwrap seems to have a bug: $tmp1="xxxxxxxx! dsfksdjfklsdjf sdflkjxxxx 1111"; $tmp2 = wordwrap($tmp1, 39); this gives the *wrong* result - this string is 40 chars long!: --- Cut --- xxxxxxxx! dsfksdjfklsdjf sdflkjxxxx 1111 --- Cut --- if you use $tmp1="xxxxxxxx! dsfksdjfklsdjf sdflkjxxxx 1111x"; $tmp2 = wordwrap($tmp1, 39); this gives the *correct* result: --- Cut --- xxxxxxxx! dsfksdjfklsdjf sdflkjxxxx 1111x --- Cut --- -- Edit Bug report at: http://bugs.php.net/?id=8061&edit=1

« previous php.dev (#39734) next »