From: Zeev Suraski Date: Sun, 23 May 1999 22:07:04 +0000 (+0000) Subject: boolean comparison didn't work with smaller-than and greater-than, something that X-Git-Tag: BEFORE_REMOVING_GC_STEP1~282 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97107dc440c200b412c2db2c377d8ac81a09bd8f;p=php boolean comparison didn't work with smaller-than and greater-than, something that fucked up berber's site a bit. fixed. --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index d6455cca85..59176bb1f8 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -895,7 +895,7 @@ ZEND_API int compare_function(zval *result, zval *op1, zval *op2) zendi_convert_to_boolean(op1, op1_copy); zendi_convert_to_boolean(op2, op2_copy); result->type = IS_LONG; - result->value.lval = (op1->value.lval!=op2->value.lval); + result->value.lval = op1->value.lval - op2->value.lval; return SUCCESS; } zendi_convert_scalar_to_number(op1, op1_copy);