iliaa Tue Jul 6 18:16:42 2004 EDT Modified files: /php-src/ext/standard string.c Log: Fixed bug #29034 (wordwrap() returns a boolean when passed empty string). http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.418&r2=1.419&ty=u Index: php-src/ext/standard/string.c diff -u php-src/ext/standard/string.c:1.418 php-src/ext/standard/string.c:1.419 --- php-src/ext/standard/string.c:1.418 Sat Jun 26 03:43:02 2004 +++ php-src/ext/standard/string.c Tue Jul 6 18:16:42 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.418 2004/06/26 07:43:02 sesser Exp $ */ +/* $Id: string.c,v 1.419 2004/07/06 22:16:42 iliaa Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -641,8 +641,9 @@ return; } - if (textlen == 0) - RETURN_FALSE; + if (textlen == 0) { + RETURN_EMPTY_STRING(); + } if (linelength == 0 && docut) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't force cut when width is zero.");
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php