diff options
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 79e1217a09..d78e0ece4c 100644 --- a/Zend/zend_operators.c +++ b/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; } |