summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2013-11-20 10:09:11 +0100
committerAnatol Belski <ab@php.net>2013-11-20 10:09:11 +0100
commitb902a25cc319e0e824104245e382376a48256803 (patch)
treefb007edfcd6c8573b07aced8643b73f893455a4a
parent0d558afc057e5e939d6cab325b2ddf2c170f0103 (diff)
downloadphp-git-b902a25cc319e0e824104245e382376a48256803.tar.gz
permanently deactivate that place, not on runtime only
besides the two "if" checks, this fixes static analyze which is sometimes broken because of this
-rw-r--r--Zend/zend_operators.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index 047b92e3ba..700b578e7f 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -736,6 +736,7 @@ static zend_always_inline int fast_mul_function(zval *result, zval *op1, zval *o
static zend_always_inline int fast_div_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
{
+#if 0
if (EXPECTED(Z_TYPE_P(op1) == IS_LONG) && 0) {
if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
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
return SUCCESS;
}
}
+#endif
return div_function(result, op1, op2 TSRMLS_CC);
}