Skip to content

Commit 1c3374c

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix signedness confusion in php_filter_validate_domain()
2 parents 7aac1c1 + 771dbdb commit 1c3374c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ PHP NEWS
99
(Tim Düsterhus)
1010
. Fixed bug GH-8160 (ZTS support on Alpine is broken). (Michael Voříšek)
1111

12+
- Filter:
13+
. Fixed signedness confusion in php_filter_validate_domain(). (cmb)
14+
1215
- Intl:
1316
. Fixed bug GH-8115 (Can't catch arg type deprecation when instantiating Intl
1417
classes). (ilutov)

ext/filter/logical_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void php_filter_validate_regexp(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */
504504
}
505505
}
506506

507-
static int _php_filter_validate_domain(char * domain, int len, zend_long flags) /* {{{ */
507+
static int _php_filter_validate_domain(char * domain, size_t len, zend_long flags) /* {{{ */
508508
{
509509
char *e, *s, *t;
510510
size_t l;

0 commit comments

Comments
 (0)