diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-06-29 12:20:09 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-06-29 12:20:09 +0300 |
commit | 1bba4452e7e5fa34470e9167e6c8b28afb42fdb7 (patch) | |
tree | 97d36e016e1c8a592db3b5c748a4717992e20b11 /Zend/zend_compile.c | |
parent | 6e84f8e95e4f115bb5944e09aca4f77621711a37 (diff) | |
download | php-git-1bba4452e7e5fa34470e9167e6c8b28afb42fdb7.tar.gz |
Reverted wrong fb08798c9f0ea820d567668d0cea4833dc61dd8e
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 8452568382..a42e63ec99 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 || opcode == ZEND_MOD) { + if (opcode == ZEND_DIV) { convert_scalar_to_number(op2); if (Z_TYPE_P(op2) == IS_LONG) { if (Z_LVAL_P(op2) == 0) { |