@@ -2038,14 +2038,14 @@ 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- }
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+ // }
20492049
20502050 if (Z_OBJ_HANDLER_P (op1 , compare )) {
20512051 if (Z_OBJ_HANDLER_P (op1 , compare )(result , op1 , op2 ) == SUCCESS ) {
@@ -2058,14 +2058,14 @@ ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2)
20582058 return SUCCESS ;
20592059
20602060 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- }
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+ // }
20692069
20702070 if (Z_OBJ_HANDLER_P (op2 , compare )) {
20712071 if (Z_OBJ_HANDLER_P (op2 , compare )(result , op2 , op1 ) == SUCCESS ) {
@@ -2088,12 +2088,12 @@ ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2)
20882088 }
20892089
20902090 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- }
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+ // }
20972097
20982098 if (Z_OBJ_HANDLER_P (op1 , compare ) && Z_OBJ_HANDLER_P (op1 , compare )(result , op1 , op2 ) == SUCCESS ) {
20992099 convert_compare_result_to_long (result );
@@ -2102,12 +2102,12 @@ ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2)
21022102 }
21032103
21042104 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- }
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+ // }
21112111
21122112 if (Z_OBJ_HANDLER_P (op2 , compare ) && Z_OBJ_HANDLER_P (op2 , compare )(result , op2 , op1 ) == SUCCESS ) {
21132113 convert_compare_result_to_long (result );
0 commit comments