Browse Source

MFH: Overflow comment

experimental/5.3-FPM
Matt Wilmas 18 years ago
parent
commit
645e15c2ea
  1. 1
      Zend/zend_operators.c

1
Zend/zend_operators.c

@ -1006,6 +1006,7 @@ ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
}
if (Z_LVAL_P(op2) == -1) {
/* Prevent overflow error/crash if op1==LONG_MIN */
ZVAL_LONG(result, 0);
return SUCCESS;
}

Loading…
Cancel
Save