Date: 11/30/00
- Next message: sam <email protected>: "[PHP-DEV] PHP 4.0 Bug #8062: $HTTP_COOKIE_VARS"
- Previous message: Zeev Suraski: "Re: [PHP-DEV] Re: [PHP] ++ BUG?? (fwd)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: al.wo <email protected>
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-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: sam <email protected>: "[PHP-DEV] PHP 4.0 Bug #8062: $HTTP_COOKIE_VARS"
- Previous message: Zeev Suraski: "Re: [PHP-DEV] Re: [PHP] ++ BUG?? (fwd)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

