@@ -2038,15 +2038,6 @@ ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2)
20382038 return SUCCESS ;
20392039
20402040 case TYPE_PAIR (IS_OBJECT , IS_NULL ):
2041- // if (Z_OBJ_HANDLER_P(op1, equals)) {
2042- // if (Z_OBJ_HANDLER_P(op1, equals)(result, op1, op2) == SUCCESS) {
2043- // if (i_zend_is_true(result)) {
2044- // ZVAL_LONG(result, 0);
2045- // return SUCCESS;
2046- // }
2047- // }
2048- // }
2049-
20502041 if (Z_OBJ_HANDLER_P (op1 , compare )) {
20512042 if (Z_OBJ_HANDLER_P (op1 , compare )(result , op1 , op2 ) == SUCCESS ) {
20522043 convert_compare_result_to_long (result );
@@ -2058,15 +2049,6 @@ ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2)
20582049 return SUCCESS ;
20592050
20602051 case TYPE_PAIR (IS_NULL , IS_OBJECT ):
2061- // if (Z_OBJ_HANDLER_P(op2, equals)) {
2062- // if (Z_OBJ_HANDLER_P(op2, equals)(result, op2, op1) == SUCCESS) {
2063- // if (i_zend_is_true(result)) {
2064- // ZVAL_LONG(result, 0);
2065- // return SUCCESS;
2066- // }
2067- // }
2068- // }
2069-
20702052 if (Z_OBJ_HANDLER_P (op2 , compare )) {
20712053 if (Z_OBJ_HANDLER_P (op2 , compare )(result , op2 , op1 ) == SUCCESS ) {
20722054 convert_compare_result_to_long (result );
@@ -2088,27 +2070,13 @@ ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2)
20882070 }
20892071
20902072 if (Z_TYPE_P (op1 ) == IS_OBJECT ) {
2091- // if (Z_OBJ_HANDLER_P(op1, equals) && Z_OBJ_HANDLER_P(op1, equals)(result, op1, op2) == SUCCESS) {
2092- // if (i_zend_is_true(result)) {
2093- // ZVAL_LONG(result, 0);
2094- // return SUCCESS;
2095- // }
2096- // }
2097-
20982073 if (Z_OBJ_HANDLER_P (op1 , compare ) && Z_OBJ_HANDLER_P (op1 , compare )(result , op1 , op2 ) == SUCCESS ) {
20992074 convert_compare_result_to_long (result );
21002075 return SUCCESS ;
21012076 }
21022077 }
21032078
21042079 if (Z_TYPE_P (op2 ) == IS_OBJECT ) {
2105- // if (Z_OBJ_HANDLER_P(op2, equals) && Z_OBJ_HANDLER_P(op2, equals)(result, op2, op1) == SUCCESS) {
2106- // if (i_zend_is_true(result)) {
2107- // ZVAL_LONG(result, 0);
2108- // return SUCCESS;
2109- // }
2110- // }
2111-
21122080 if (Z_OBJ_HANDLER_P (op2 , compare ) && Z_OBJ_HANDLER_P (op2 , compare )(result , op2 , op1 ) == SUCCESS ) {
21132081 convert_compare_result_to_long (result );
21142082 Z_LVAL_P (result ) *= -1 ;
0 commit comments