cvs: ZendEngine2(PHP_5_2) / zend_operators.c
[email protected] ("Matt Wilmas") Tue, 17 Feb 2009 14:16:36 -0000
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <cvsmattwil1234880196@cvsserver> |
mattwil Tue Feb 17 14:16:36 2009 UTC
Modified files: (Branch: PHP_5_2)
/ZendEngine2 zend_operators.c
Log:
MFH: Fixed bug #47422 (modulus operator returns incorrect results on 64 bit linux)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.c?r1=1.208.2.4.2.28&r2=1.208.2.4.2.29&diff_format=u
Index: ZendEngine2/zend_operators.c
diff -u ZendEngine2/zend_operators.c:1.208.2.4.2.28 ZendEngine2/zend_operators.c:1.208.2.4.2.29
--- ZendEngine2/zend_operators.c:1.208.2.4.2.28 Sun Feb 15 14:31:17 2009
+++ ZendEngine2/zend_operators.c Tue Feb 17 14:16:36 2009
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_operators.c,v 1.208.2.4.2.28 2009/02/15 14:31:17 iliaa Exp $ */
+/* $Id: zend_operators.c,v 1.208.2.4.2.29 2009/02/17 14:16:36 mattwil Exp $ */
#include <ctype.h>
@@ -936,7 +936,7 @@
return FAILURE; /* modulus by zero */
}
- if (abs(op2->value.lval) == 1) {
+ if (op2->value.lval == -1) {
ZVAL_LONG(result, 0);
return SUCCESS;
}