Allow arbitrary expressions in static variable initializer

Closes GH-9301
This commit is contained in:
Ilija Tovilo 2022-08-11 17:42:54 +02:00
parent 3189a9f94a
commit 0b1d750d91
No known key found for this signature in database
GPG key ID: A4F5D403F118200A
44 changed files with 1118 additions and 690 deletions

View file

@ -22,7 +22,7 @@
#include <zend.h>
#include <zend_vm_opcodes.h>
static const char *zend_vm_opcodes_names[203] = {
static const char *zend_vm_opcodes_names[204] = {
"ZEND_NOP",
"ZEND_ADD",
"ZEND_SUB",
@ -226,9 +226,10 @@ static const char *zend_vm_opcodes_names[203] = {
"ZEND_FETCH_GLOBALS",
"ZEND_VERIFY_NEVER_TYPE",
"ZEND_CALLABLE_CONVERT",
"ZEND_BIND_INIT_STATIC_OR_JMP",
};
static uint32_t zend_vm_opcodes_flags[203] = {
static uint32_t zend_vm_opcodes_flags[204] = {
0x00000000,
0x00000b0b,
0x00000b0b,
@ -412,7 +413,7 @@ static uint32_t zend_vm_opcodes_flags[203] = {
0x00067000,
0x00040b73,
0x00100101,
0x00100101,
0x00100001,
0x00000101,
0x00001301,
0x00000101,
@ -432,6 +433,7 @@ static uint32_t zend_vm_opcodes_flags[203] = {
0x00000101,
0x00000101,
0x00000101,
0x00002001,
};
ZEND_API const char* ZEND_FASTCALL zend_get_opcode_name(uint8_t opcode) {