Browse Source

Don't do anything, if the input string has a length of 0.

PR: #7686
PHP-4.0.5
Sascha Schumann 26 years ago
parent
commit
2d011afbfd
  1. 4
      ext/standard/string.c

4
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) {

Loading…
Cancel
Save