diff --git a/NEWS b/NEWS index c082f336225..9ab9d7a800d 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ PHP NEWS - Core: . Fixed bug GH-18850 (Repeated inclusion of file with __halt_compiler() triggers "Constant already defined" warning). (ilutov) + . Partially fixed bug GH-19542 (Scanning of string literals >=2GB will fail + due to signed int overflow). (ilutov) - Opcache: . Fixed bug GH-19493 (JIT variable not stored before YIELD). (Arnaud) diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 988ec6366a7..0be49df0275 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -911,7 +911,7 @@ ZEND_API void zend_multibyte_yyinput_again(zend_encoding_filter old_input_filter ZVAL_STRINGL(zendlval, yytext, yyleng); \ } -static zend_result zend_scan_escape_string(zval *zendlval, char *str, int len, char quote_type) +static zend_result zend_scan_escape_string(zval *zendlval, char *str, size_t len, char quote_type) { char *s, *t; char *end;