diff options
author | Ilija Tovilo <ilija.tovilo@me.com> | 2020-05-24 12:42:48 +0200 |
---|---|---|
committer | Ilija Tovilo <ilija.tovilo@me.com> | 2020-07-24 10:05:03 +0200 |
commit | 9bf119832dbf625174794834c71b1e793450d87f (patch) | |
tree | df6f1dfbc9dfdeaa8d2313ad43a4eff982b6eaca /Zend/zend_vm_opcodes.c | |
parent | 293d2f99f1c418103af6b239ad0693b89d454aed (diff) | |
download | php-git-9bf119832dbf625174794834c71b1e793450d87f.tar.gz |
Implement nullsafe ?-> operator
RFC: https://wiki.php.net/rfc/nullsafe_operator
Closes GH-5619.
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
Diffstat (limited to 'Zend/zend_vm_opcodes.c')
-rw-r--r-- | Zend/zend_vm_opcodes.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zend/zend_vm_opcodes.c b/Zend/zend_vm_opcodes.c index e51e476be3..296a952e12 100644 --- a/Zend/zend_vm_opcodes.c +++ b/Zend/zend_vm_opcodes.c @@ -22,7 +22,7 @@ #include <zend.h> #include <zend_vm_opcodes.h> -static const char *zend_vm_opcodes_names[198] = { +static const char *zend_vm_opcodes_names[199] = { "ZEND_NOP", "ZEND_ADD", "ZEND_SUB", @@ -221,9 +221,10 @@ static const char *zend_vm_opcodes_names[198] = { "ZEND_MATCH", "ZEND_CASE_STRICT", "ZEND_MATCH_ERROR", + "ZEND_JMP_NULL", }; -static uint32_t zend_vm_opcodes_flags[198] = { +static uint32_t zend_vm_opcodes_flags[199] = { 0x00000000, 0x00000b0b, 0x00000b0b, @@ -422,6 +423,7 @@ static uint32_t zend_vm_opcodes_flags[198] = { 0x0300030b, 0x00000301, 0x0000010b, + 0x0000200b, }; ZEND_API const char* ZEND_FASTCALL zend_get_opcode_name(zend_uchar opcode) { |