From 8a3dbb0401b2b9e58705e260921bc2d0cee4d146 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Thu, 13 Mar 2025 15:07:31 +0000 Subject: [PATCH] ext/date: Change return type of check_id_allowed from int to bool --- ext/date/php_date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 913f2b032f7..c90edb7388b 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -5291,7 +5291,7 @@ PHP_METHOD(DatePeriod, getIterator) zend_create_internal_iterator_zval(return_value, ZEND_THIS); } -static int check_id_allowed(const char *id, zend_long what) /* {{{ */ +static bool check_id_allowed(const char *id, zend_long what) /* {{{ */ { if ((what & PHP_DATE_TIMEZONE_GROUP_AFRICA) && strncasecmp(id, "Africa/", 7) == 0) return 1; if ((what & PHP_DATE_TIMEZONE_GROUP_AMERICA) && strncasecmp(id, "America/", 8) == 0) return 1;