Skip to content

Commit 043b66c

Browse files
committed
ext/date: Change return type of check_id_allowed from int to bool
1 parent 8e01639 commit 043b66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ext/date/php_date.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5289,7 +5289,7 @@ PHP_METHOD(DatePeriod, getIterator)
52895289
zend_create_internal_iterator_zval(return_value, ZEND_THIS);
52905290
}
52915291

5292-
static int check_id_allowed(const char *id, zend_long what) /* {{{ */
5292+
static bool check_id_allowed(const char *id, zend_long what) /* {{{ */
52935293
{
52945294
if ((what & PHP_DATE_TIMEZONE_GROUP_AFRICA) && strncasecmp(id, "Africa/", 7) == 0) return 1;
52955295
if ((what & PHP_DATE_TIMEZONE_GROUP_AMERICA) && strncasecmp(id, "America/", 8) == 0) return 1;

0 commit comments

Comments
 (0)