summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_opcodes.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-05-25 18:41:28 +0300
committerDmitry Stogov <dmitry@zend.com>2017-05-25 18:41:28 +0300
commitf00d1c72b4dbaf3532569d20efc1da7c408605d6 (patch)
treecf1af50d744d07f558046ed153d06c671cc37913 /Zend/zend_vm_opcodes.c
parent546dd2af96f2022d04fb9e10cb70f94e679f6160 (diff)
downloadphp-git-f00d1c72b4dbaf3532569d20efc1da7c408605d6.tar.gz
Added ZEND_GET_CLASS, ZEMD_GET_CALLED_CLASS, ZEND_GET_TYPE instructions, to implement corresponding builtin functions.
Diffstat (limited to 'Zend/zend_vm_opcodes.c')
-rw-r--r--Zend/zend_vm_opcodes.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Zend/zend_vm_opcodes.c b/Zend/zend_vm_opcodes.c
index 22349193f9..0d0fc51455 100644
--- a/Zend/zend_vm_opcodes.c
+++ b/Zend/zend_vm_opcodes.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <zend.h>
-static const char *zend_vm_opcodes_names[191] = {
+static const char *zend_vm_opcodes_names[194] = {
"ZEND_NOP",
"ZEND_ADD",
"ZEND_SUB",
@@ -213,9 +213,12 @@ static const char *zend_vm_opcodes_names[191] = {
"ZEND_SWITCH_STRING",
"ZEND_IN_ARRAY",
"ZEND_COUNT",
+ "ZEND_GET_CLASS",
+ "ZEND_GET_CALLED_CLASS",
+ "ZEND_GET_TYPE",
};
-static uint32_t zend_vm_opcodes_flags[191] = {
+static uint32_t zend_vm_opcodes_flags[194] = {
0x00000000,
0x00000707,
0x00000707,
@@ -407,6 +410,9 @@ static uint32_t zend_vm_opcodes_flags[191] = {
0x03000307,
0x01000303,
0x00000103,
+ 0x00000103,
+ 0x00000101,
+ 0x00000103,
};
ZEND_API const char* zend_get_opcode_name(zend_uchar opcode) {