Browse Source

MFH: fix spelling and #35665

PHP-5.1
Antony Dovgal 21 years ago
parent
commit
1b7e3fe2a5
  1. 2
      ext/standard/string.c

2
ext/standard/string.c

@ -4219,7 +4219,7 @@ PHP_FUNCTION(str_repeat)
/* Initialize the result string */
result_len = Z_STRLEN_PP(input_str) * Z_LVAL_PP(mult);
if (result_len < 1 || result_len > 2147483647) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "You may not create strings longer then 2147483647 bytes");
php_error_docref(NULL TSRMLS_CC, E_WARNING, "You may not create strings longer than 2147483647 bytes");
RETURN_FALSE;
}
result = (char *)emalloc(result_len + 1);

Loading…
Cancel
Save