From 09c498233eb866632ccad6cfae966f42caf27bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Wed, 28 Aug 2024 22:39:14 +0200 Subject: [PATCH] Use ZEND_UNCOMPARABLE for consistency --- 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 1609b7c510f..b12ca49886e 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2038,7 +2038,7 @@ static int date_object_compare_timezone(zval *tz1, zval *tz2) /* {{{ */ if (!o1->initialized || !o2->initialized) { zend_throw_error(date_ce_date_object_error, "Trying to compare uninitialized DateTimeZone objects"); - return 1; + return ZEND_UNCOMPARABLE; } if (o1->type != o2->type) {