1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/date: Change return type of check_id_allowed from int to bool

This commit is contained in:
Gina Peter Banyard
2025-03-13 15:07:31 +00:00
parent a4685d8b54
commit 8a3dbb0401

View File

@@ -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;