summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-01-30 22:06:05 +0300
committerDmitry Stogov <dmitry@zend.com>2018-01-30 22:06:05 +0300
commit7141631cc886fbb9c58af2deb2d324346de2980d (patch)
tree7dfef243dcca1bef25d6af086d721c249fa89b26 /Zend/zend_compile.c
parentacbd348969ea9f9a334c74dcc309da62e9bdc24e (diff)
downloadphp-git-7141631cc886fbb9c58af2deb2d324346de2980d.tar.gz
Change FETCH/ISSET instruction modifiers:
- Get rid of ZEND_ISEMPTY and ZEND_ISSET_ISEMPTY_MASK. Use just single ZEND_ISSET bit to make distinct between isset() and empty() - Use ZEND_FETCH_GLOBAL, ZEND_FETCH_LOCAL and ZEND_FETCH_GLOBAL_LOCK as bitmask - Removed unused ZEND_FETCH_STANDARD - Extended ZEND_FETCH_ARG_MASK
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index e6a34371a3..226d440300 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -7571,7 +7571,7 @@ void zend_compile_isset_or_empty(znode *result, zend_ast *ast) /* {{{ */
}
result->op_type = opline->result_type = IS_TMP_VAR;
- opline->extended_value |= ast->kind == ZEND_AST_ISSET ? ZEND_ISSET : ZEND_ISEMPTY;
+ opline->extended_value |= ast->kind == ZEND_AST_ISSET ? ZEND_ISSET : 0;
}
/* }}} */