summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-07-05 12:16:30 +0300
committerDmitry Stogov <dmitry@zend.com>2019-07-05 12:16:30 +0300
commit1b5b8175aff0fba41ce94d75d1ddf0f7be630b9c (patch)
tree7fef7cefe333517cf9640eee34b198e865a4f9e5 /Zend/zend_compile.h
parent215e9d069c3dae40d94894d1a938d771cecc2549 (diff)
parent48ca5a1e176c5301fedd1bc4f661969d6f9a49eb (diff)
downloadphp-git-1b5b8175aff0fba41ce94d75d1ddf0f7be630b9c.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Replace ZEND_ASSIGN_ADD (and others) by ZEND_ASSIGN_OP, ZEND_ASSIGN_DIM_OP, ZEND_ASSGIN_OBJ_OP and ZEND_ASSIGN_STATIC_PROP_OP
Diffstat (limited to 'Zend/zend_compile.h')
-rw-r--r--Zend/zend_compile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 344b6cc245..a825186a85 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -995,6 +995,9 @@ static zend_always_inline int zend_check_arg_send_type(const zend_function *zf,
/* All increment opcodes are even (decrement are odd) */
#define ZEND_IS_INCREMENT(opcode) (((opcode) & 1) == 0)
+#define ZEND_IS_BINARY_ASSIGN_OP_OPCODE(opcode) \
+ (((opcode) >= ZEND_ADD) && ((opcode) <= ZEND_POW))
+
/* Pseudo-opcodes that are used only temporarily during compilation */
#define ZEND_GOTO 253
#define ZEND_BRK 254