Browse Source
Use compatability zend_isnan() instead of POSIX isnan()
s/isnan/zend_isnan/g
pull/2648/head
Sara Golemon
9 years ago
No known key found for this signature in database
GPG Key ID: DBDB397470D12172
1 changed files with
2 additions and
2 deletions
-
Zend/zend_operators.c
|
|
|
@ -2151,12 +2151,12 @@ 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) && isnan(Z_DVAL_P(op1)))) { |
|
|
|
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) && isnan(Z_DVAL_P(op2)))) { |
|
|
|
if (UNEXPECTED((Z_TYPE_P(op2) == IS_DOUBLE) && zend_isnan(Z_DVAL_P(op2)))) { |
|
|
|
ZVAL_FALSE(result); |
|
|
|
return SUCCESS; |
|
|
|
} |
|
|
|
|