diff --git a/NEWS b/NEWS index c6af44051a4..359d099b04a 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,9 @@ PHP NEWS (Tim Düsterhus) . Fixed bug GH-8160 (ZTS support on Alpine is broken). (Michael Voříšek) +- Filter: + . Fixed signedness confusion in php_filter_validate_domain(). (cmb) + - Intl: . Fixed bug GH-8142 (Compilation error on cygwin). (David Carlier) diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 95f7a99e34b..b5747367628 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -496,7 +496,7 @@ void php_filter_validate_regexp(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */ } } -static int _php_filter_validate_domain(char * domain, int len, zend_long flags) /* {{{ */ +static int _php_filter_validate_domain(char * domain, size_t len, zend_long flags) /* {{{ */ { char *e, *s, *t; size_t l;