diff options
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 2e0822fdd4..7194aacdb5 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -5625,7 +5625,7 @@ static inline zend_bool zend_try_ct_eval_binary_op(zval *result, uint32_t opcode binary_op_type fn = get_binary_op(opcode); /* don't evaluate division by zero at compile-time */ - if (opcode == ZEND_DIV) { + if (opcode == ZEND_DIV || opcode == ZEND_MOD) { convert_scalar_to_number(op2); if (Z_TYPE_P(op2) == IS_LONG) { if (Z_LVAL_P(op2) == 0) { |