From: Sascha Schumann Date: Sun, 17 Dec 2000 02:09:07 +0000 (+0000) Subject: Don't do anything, if the input string has a length of 0. X-Git-Tag: php-4.0.5RC1~875 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d011afbfd23712a51516b845ba6bd130423878a;p=php Don't do anything, if the input string has a length of 0. PR: #7686 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 39cdd923d2..d587093d5e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -263,6 +263,10 @@ PHP_FUNCTION(wordwrap) } convert_to_string_ex(ptext); + + if (Z_STRVAL_PP(ptext) == 0) + RETVAL_FALSE; + text = (*ptext)->value.str.val; if (ZEND_NUM_ARGS() > 1) {