Skip to content

Commit b902a25

Browse files
committed
permanently deactivate that place, not on runtime only
besides the two "if" checks, this fixes static analyze which is sometimes broken because of this
1 parent 0d558af commit b902a25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_operators.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ static zend_always_inline int fast_mul_function(zval *result, zval *op1, zval *o
736736

737737
static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
738738
{
739+
#if 0
739740
if (EXPECTED(Z_TYPE_P(op1) == IS_LONG) && 0) {
740741
if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
741742
if (UNEXPECTED(Z_LVAL_P(op2) == 0)) {
@@ -790,6 +791,7 @@ static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *o
790791
return SUCCESS;
791792
}
792793
}
794+
#endif
793795
return div_function(result, op1, op2 TSRMLS_CC);
794796
}
795797

0 commit comments

Comments
 (0)