diff options
author | Sara Golemon <pollita@php.net> | 2017-07-27 10:05:16 -0400 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2017-07-27 10:05:16 -0400 |
commit | 00bed31d9f24ce46b461e911c06d7a8b6e2cf1c0 (patch) | |
tree | eaaec330272bfb3bbf1a6b24c9227158e6a55396 /Zend/zend_operators.c | |
parent | a7fe93221d07f616458c466c29b054c34a8a9ad0 (diff) | |
parent | 4a6ef8327a5b2e0bc51f833df200b7508030eede (diff) | |
download | php-git-00bed31d9f24ce46b461e911c06d7a8b6e2cf1c0.tar.gz |
Merge branch 'PHP-7.2'
* PHP-7.2:
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; } |