cvs: ZendEngine2 / zend_operators.c

[email protected] ("Matt Wilmas") Tue, 17 Feb 2009 15:14:48 -0000
Newsgroups php.zend-engine.cvs
Message-ID <cvsmattwil1234883688@cvsserver>
mattwil		Tue Feb 17 15:14:48 2009 UTC

  Modified files:              
    /ZendEngine2	zend_operators.c 
  Log:
  Added overflow comment from div_function
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.c?r1=1.299&r2=1.300&diff_format=u
Index: ZendEngine2/zend_operators.c
diff -u ZendEngine2/zend_operators.c:1.299 ZendEngine2/zend_operators.c:1.300
--- ZendEngine2/zend_operators.c:1.299	Tue Feb 17 14:14:56 2009
+++ ZendEngine2/zend_operators.c	Tue Feb 17 15:14:48 2009
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_operators.c,v 1.299 2009/02/17 14:14:56 mattwil Exp $ */
+/* $Id: zend_operators.c,v 1.300 2009/02/17 15:14:48 mattwil Exp $ */
 
 #include <ctype.h>
 
@@ -1524,6 +1524,7 @@
 	}
 
 	if (Z_LVAL_P(op2) == -1) {
+		/* Prevent overflow error/crash if op1==LONG_MIN */
 		ZVAL_LONG(result, 0);
 		return SUCCESS;
 	}