mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use ZEND_UNCOMPARABLE for consistency
This commit is contained in:
parent
51d93c1947
commit
09c498233e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue