diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-02-05 19:40:06 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-02-05 19:40:06 +0300 |
commit | 3a794d39f081f73b2204aed8b80163a197ab41c3 (patch) | |
tree | 90af4978f502d85b1a1ac1e1e72ebeaf9e65d6bc /Zend/zend_vm_opcodes.h | |
parent | 7416562ab0c1062722c43c6b55d38e1a79f217cb (diff) | |
download | php-git-3a794d39f081f73b2204aed8b80163a197ab41c3.tar.gz |
Avoid repeatable ARG_SHOULD_BE_SENT_BY_REF() checks in FETCH_*FUNC_ARG and following SEND_VAR_EX. Perform the check once in a new CHECK_FUNC_ARG opcode and reuse in the following FETCH_*FUNC_ARG and SEND_FUNC_ARG (SEND_VAR_EX replacement).
Diffstat (limited to 'Zend/zend_vm_opcodes.h')
-rw-r--r-- | Zend/zend_vm_opcodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_vm_opcodes.h b/Zend/zend_vm_opcodes.h index fc0cba498f..d652c292ce 100644 --- a/Zend/zend_vm_opcodes.h +++ b/Zend/zend_vm_opcodes.h @@ -50,7 +50,6 @@ #define ZEND_VM_OP_CONST_FETCH 0x00000090 #define ZEND_VM_EXT_VAR_FETCH 0x00010000 #define ZEND_VM_EXT_ISSET 0x00020000 -#define ZEND_VM_EXT_ARG_NUM 0x00040000 #define ZEND_VM_EXT_ARRAY_INIT 0x00080000 #define ZEND_VM_EXT_REF 0x00100000 #define ZEND_VM_EXT_MASK 0x0f000000 @@ -174,6 +173,7 @@ END_EXTERN_C() #define ZEND_FETCH_OBJ_UNSET 97 #define ZEND_FETCH_LIST_R 98 #define ZEND_FETCH_CONSTANT 99 +#define ZEND_CHECK_FUNC_ARG 100 #define ZEND_EXT_STMT 101 #define ZEND_EXT_FCALL_BEGIN 102 #define ZEND_EXT_FCALL_END 103 @@ -258,6 +258,7 @@ END_EXTERN_C() #define ZEND_BIND_LEXICAL 182 #define ZEND_BIND_STATIC 183 #define ZEND_FETCH_THIS 184 +#define ZEND_SEND_FUNC_ARG 185 #define ZEND_ISSET_ISEMPTY_THIS 186 #define ZEND_SWITCH_LONG 187 #define ZEND_SWITCH_STRING 188 |