diff options
author | Matt Wilmas <mattwil@php.net> | 2009-02-17 14:15:52 +0000 |
---|---|---|
committer | Matt Wilmas <mattwil@php.net> | 2009-02-17 14:15:52 +0000 |
commit | a7eb83fef5489d91661eee4e90611d351c5569b0 (patch) | |
tree | a5edccc831af90338692d30d129a4a2c14c05468 | |
parent | 2513cde86e418bdb0883e97e04af181085a242e6 (diff) | |
download | php-git-a7eb83fef5489d91661eee4e90611d351c5569b0.tar.gz |
MFH: Fixed bug #47422 (modulus operator returns incorrect results on 64 bit linux)
-rw-r--r-- | Zend/zend_operators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 57e4e7f5ab..79e1217a09 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1005,7 +1005,7 @@ ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) return FAILURE; /* modulus by zero */ } - if (abs(Z_LVAL_P(op2)) == 1) { + if (Z_LVAL_P(op2) == -1) { ZVAL_LONG(result, 0); return SUCCESS; } |