diff options
author | Sara Golemon <pollita@php.net> | 2017-07-27 10:04:59 -0400 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2017-07-27 10:04:59 -0400 |
commit | 4a6ef8327a5b2e0bc51f833df200b7508030eede (patch) | |
tree | 7cb0ef1c9c93ebeb3cbe6e68878d6ebc616af925 /Zend/zend_operators.c | |
parent | 262aeb8ae1dbe5d45c6c3d109535a19acad7da9c (diff) | |
parent | b62fb3aa0c7968b9f478df355b18b7343efe87e0 (diff) | |
download | php-git-4a6ef8327a5b2e0bc51f833df200b7508030eede.tar.gz |
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Simpler fix for #74974
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index a19990e605..ffc4dcc9a2 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -2174,16 +2174,6 @@ ZEND_API int ZEND_FASTCALL is_not_equal_function(zval *result, zval *op1, zval * ZEND_API int ZEND_FASTCALL is_smaller_function(zval *result, zval *op1, zval *op2) /* {{{ */ { - if (UNEXPECTED((Z_TYPE_P(op1) == IS_DOUBLE) && zend_isnan(Z_DVAL_P(op1)))) { - ZVAL_FALSE(result); - return SUCCESS; - } - - if (UNEXPECTED((Z_TYPE_P(op2) == IS_DOUBLE) && zend_isnan(Z_DVAL_P(op2)))) { - ZVAL_FALSE(result); - return SUCCESS; - } - if (compare_function(result, op1, op2) == FAILURE) { return FAILURE; } @@ -2194,16 +2184,6 @@ ZEND_API int ZEND_FASTCALL is_smaller_function(zval *result, zval *op1, zval *op ZEND_API int ZEND_FASTCALL is_smaller_or_equal_function(zval *result, zval *op1, zval *op2) /* {{{ */ { - if (UNEXPECTED((Z_TYPE_P(op1) == IS_DOUBLE) && isnan(Z_DVAL_P(op1)))) { - ZVAL_FALSE(result); - return SUCCESS; - } - - if (UNEXPECTED((Z_TYPE_P(op2) == IS_DOUBLE) && isnan(Z_DVAL_P(op2)))) { - ZVAL_FALSE(result); - return SUCCESS; - } - if (compare_function(result, op1, op2) == FAILURE) { return FAILURE; } |