Skip to content

Commit dcc59b7

Browse files
committed
ext/date: Change return type of check_id_allowed from int to bool
1 parent a4be8d4 commit dcc59b7

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
@@ -5291,7 +5291,7 @@ PHP_METHOD(DatePeriod, getIterator)
52915291
zend_create_internal_iterator_zval(return_value, ZEND_THIS);
52925292
}
52935293

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

0 commit comments

Comments
 (0)