Skip to content

Commit 09c4982

Browse files
committed
Use ZEND_UNCOMPARABLE for consistency
1 parent 51d93c1 commit 09c4982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/date/php_date.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ static int date_object_compare_timezone(zval *tz1, zval *tz2) /* {{{ */
20382038

20392039
if (!o1->initialized || !o2->initialized) {
20402040
zend_throw_error(date_ce_date_object_error, "Trying to compare uninitialized DateTimeZone objects");
2041-
return 1;
2041+
return ZEND_UNCOMPARABLE;
20422042
}
20432043

20442044
if (o1->type != o2->type) {

0 commit comments

Comments
 (0)