cvs: ZendEngine2(PHP_5_3) / zend_operators.c
[email protected] ("Matt Wilmas") Tue, 17 Feb 2009 14:15:52 -0000
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <cvsmattwil1234880152@cvsserver> |
mattwil Tue Feb 17 14:15:52 2009 UTC
Modified files: (Branch: PHP_5_3)
/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.23.2.18&r2=1.208.2.4.2.23.2.19&diff_format=u
Index: ZendEngine2/zend_operators.c
diff -u ZendEngine2/zend_operators.c:1.208.2.4.2.23.2.18 ZendEngine2/zend_operators.c:1.208.2.4.2.23.2.19
--- ZendEngine2/zend_operators.c:1.208.2.4.2.23.2.18 Mon Jan 5 20:31:51 2009
+++ ZendEngine2/zend_operators.c Tue Feb 17 14:15:52 2009
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_operators.c,v 1.208.2.4.2.23.2.18 2009/01/05 20:31:51 felipe Exp $ */
+/* $Id: zend_operators.c,v 1.208.2.4.2.23.2.19 2009/02/17 14:15:52 mattwil Exp $ */
#include <ctype.h>
@@ -1005,7 +1005,7 @@
return FAILURE; /* modulus by zero */
}
- if (abs(Z_LVAL_P(op2)) == 1) {
+ if (Z_LVAL_P(op2) == -1) {
ZVAL_LONG(result, 0);
return SUCCESS;
}