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

Use ZEND_UNCOMPARABLE for consistency

This commit is contained in:
Máté Kocsis
2024-08-28 22:39:14 +02:00
parent 51d93c1947
commit 09c498233e

View File

@@ -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) {