cvs: ZendEngine2(PHP_5_2) / zend_operators.c

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

  Modified files:              (Branch: PHP_5_2)
    /ZendEngine2	zend_operators.c 
  Log:
  MFH: Overflow comment
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_operators.c?r1=1.208.2.4.2.29&r2=1.208.2.4.2.30&diff_format=u
Index: ZendEngine2/zend_operators.c
diff -u ZendEngine2/zend_operators.c:1.208.2.4.2.29 ZendEngine2/zend_operators.c:1.208.2.4.2.30
--- ZendEngine2/zend_operators.c:1.208.2.4.2.29	Tue Feb 17 14:16:36 2009
+++ ZendEngine2/zend_operators.c	Tue Feb 17 15:15:36 2009
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_operators.c,v 1.208.2.4.2.29 2009/02/17 14:16:36 mattwil Exp $ */
+/* $Id: zend_operators.c,v 1.208.2.4.2.30 2009/02/17 15:15:36 mattwil Exp $ */
 
 #include <ctype.h>
 
@@ -937,6 +937,7 @@
 	}
 
 	if (op2->value.lval == -1) {
+		/* Prevent overflow error/crash if op1==LONG_MIN */
 		ZVAL_LONG(result, 0);
 		return SUCCESS;
 	}