@@ -6169,6 +6169,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_C
6169
6169
} else if (Z_TYPE_P(offset) == IS_TRUE) {
6170
6170
hval = 1;
6171
6171
goto num_index;
6172
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
6173
+ zend_use_resource_as_offset(offset);
6174
+ hval = Z_RES_HANDLE_P(offset);
6175
+ goto num_index;
6172
6176
} else if (IS_CONST == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
6173
6177
ZVAL_UNDEFINED_OP2();
6174
6178
str = ZSTR_EMPTY_ALLOC();
@@ -8356,6 +8360,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_T
8356
8360
} else if (Z_TYPE_P(offset) == IS_TRUE) {
8357
8361
hval = 1;
8358
8362
goto num_index;
8363
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
8364
+ zend_use_resource_as_offset(offset);
8365
+ hval = Z_RES_HANDLE_P(offset);
8366
+ goto num_index;
8359
8367
} else if ((IS_TMP_VAR|IS_VAR) == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
8360
8368
ZVAL_UNDEFINED_OP2();
8361
8369
str = ZSTR_EMPTY_ALLOC();
@@ -9315,6 +9323,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_U
9315
9323
} else if (Z_TYPE_P(offset) == IS_TRUE) {
9316
9324
hval = 1;
9317
9325
goto num_index;
9326
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
9327
+ zend_use_resource_as_offset(offset);
9328
+ hval = Z_RES_HANDLE_P(offset);
9329
+ goto num_index;
9318
9330
} else if (IS_UNUSED == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
9319
9331
ZVAL_UNDEFINED_OP2();
9320
9332
str = ZSTR_EMPTY_ALLOC();
@@ -10799,6 +10811,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_C
10799
10811
} else if (Z_TYPE_P(offset) == IS_TRUE) {
10800
10812
hval = 1;
10801
10813
goto num_index;
10814
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
10815
+ zend_use_resource_as_offset(offset);
10816
+ hval = Z_RES_HANDLE_P(offset);
10817
+ goto num_index;
10802
10818
} else if (IS_CV == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
10803
10819
ZVAL_UNDEFINED_OP2();
10804
10820
str = ZSTR_EMPTY_ALLOC();
@@ -18744,6 +18760,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_TMP_CON
18744
18760
} else if (Z_TYPE_P(offset) == IS_TRUE) {
18745
18761
hval = 1;
18746
18762
goto num_index;
18763
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
18764
+ zend_use_resource_as_offset(offset);
18765
+ hval = Z_RES_HANDLE_P(offset);
18766
+ goto num_index;
18747
18767
} else if (IS_CONST == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
18748
18768
ZVAL_UNDEFINED_OP2();
18749
18769
str = ZSTR_EMPTY_ALLOC();
@@ -19168,6 +19188,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_TMP_TMP
19168
19188
} else if (Z_TYPE_P(offset) == IS_TRUE) {
19169
19189
hval = 1;
19170
19190
goto num_index;
19191
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
19192
+ zend_use_resource_as_offset(offset);
19193
+ hval = Z_RES_HANDLE_P(offset);
19194
+ goto num_index;
19171
19195
} else if ((IS_TMP_VAR|IS_VAR) == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
19172
19196
ZVAL_UNDEFINED_OP2();
19173
19197
str = ZSTR_EMPTY_ALLOC();
@@ -19668,6 +19692,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_TMP_UNU
19668
19692
} else if (Z_TYPE_P(offset) == IS_TRUE) {
19669
19693
hval = 1;
19670
19694
goto num_index;
19695
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
19696
+ zend_use_resource_as_offset(offset);
19697
+ hval = Z_RES_HANDLE_P(offset);
19698
+ goto num_index;
19671
19699
} else if (IS_UNUSED == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
19672
19700
ZVAL_UNDEFINED_OP2();
19673
19701
str = ZSTR_EMPTY_ALLOC();
@@ -20071,6 +20099,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_TMP_CV_
20071
20099
} else if (Z_TYPE_P(offset) == IS_TRUE) {
20072
20100
hval = 1;
20073
20101
goto num_index;
20102
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
20103
+ zend_use_resource_as_offset(offset);
20104
+ hval = Z_RES_HANDLE_P(offset);
20105
+ goto num_index;
20074
20106
} else if (IS_CV == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
20075
20107
ZVAL_UNDEFINED_OP2();
20076
20108
str = ZSTR_EMPTY_ALLOC();
@@ -23897,6 +23929,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_VAR_CON
23897
23929
} else if (Z_TYPE_P(offset) == IS_TRUE) {
23898
23930
hval = 1;
23899
23931
goto num_index;
23932
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
23933
+ zend_use_resource_as_offset(offset);
23934
+ hval = Z_RES_HANDLE_P(offset);
23935
+ goto num_index;
23900
23936
} else if (IS_CONST == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
23901
23937
ZVAL_UNDEFINED_OP2();
23902
23938
str = ZSTR_EMPTY_ALLOC();
@@ -26043,6 +26079,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_VAR_TMP
26043
26079
} else if (Z_TYPE_P(offset) == IS_TRUE) {
26044
26080
hval = 1;
26045
26081
goto num_index;
26082
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
26083
+ zend_use_resource_as_offset(offset);
26084
+ hval = Z_RES_HANDLE_P(offset);
26085
+ goto num_index;
26046
26086
} else if ((IS_TMP_VAR|IS_VAR) == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
26047
26087
ZVAL_UNDEFINED_OP2();
26048
26088
str = ZSTR_EMPTY_ALLOC();
@@ -27656,6 +27696,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_VAR_UNU
27656
27696
} else if (Z_TYPE_P(offset) == IS_TRUE) {
27657
27697
hval = 1;
27658
27698
goto num_index;
27699
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
27700
+ zend_use_resource_as_offset(offset);
27701
+ hval = Z_RES_HANDLE_P(offset);
27702
+ goto num_index;
27659
27703
} else if (IS_UNUSED == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
27660
27704
ZVAL_UNDEFINED_OP2();
27661
27705
str = ZSTR_EMPTY_ALLOC();
@@ -29793,6 +29837,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_VAR_CV_
29793
29837
} else if (Z_TYPE_P(offset) == IS_TRUE) {
29794
29838
hval = 1;
29795
29839
goto num_index;
29840
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
29841
+ zend_use_resource_as_offset(offset);
29842
+ hval = Z_RES_HANDLE_P(offset);
29843
+ goto num_index;
29796
29844
} else if (IS_CV == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
29797
29845
ZVAL_UNDEFINED_OP2();
29798
29846
str = ZSTR_EMPTY_ALLOC();
@@ -40974,6 +41022,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_CV_CONS
40974
41022
} else if (Z_TYPE_P(offset) == IS_TRUE) {
40975
41023
hval = 1;
40976
41024
goto num_index;
41025
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
41026
+ zend_use_resource_as_offset(offset);
41027
+ hval = Z_RES_HANDLE_P(offset);
41028
+ goto num_index;
40977
41029
} else if (IS_CONST == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
40978
41030
ZVAL_UNDEFINED_OP2();
40979
41031
str = ZSTR_EMPTY_ALLOC();
@@ -44396,6 +44448,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_CV_TMPV
44396
44448
} else if (Z_TYPE_P(offset) == IS_TRUE) {
44397
44449
hval = 1;
44398
44450
goto num_index;
44451
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
44452
+ zend_use_resource_as_offset(offset);
44453
+ hval = Z_RES_HANDLE_P(offset);
44454
+ goto num_index;
44399
44455
} else if ((IS_TMP_VAR|IS_VAR) == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
44400
44456
ZVAL_UNDEFINED_OP2();
44401
44457
str = ZSTR_EMPTY_ALLOC();
@@ -46129,6 +46185,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_CV_UNUS
46129
46185
} else if (Z_TYPE_P(offset) == IS_TRUE) {
46130
46186
hval = 1;
46131
46187
goto num_index;
46188
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
46189
+ zend_use_resource_as_offset(offset);
46190
+ hval = Z_RES_HANDLE_P(offset);
46191
+ goto num_index;
46132
46192
} else if (IS_UNUSED == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
46133
46193
ZVAL_UNDEFINED_OP2();
46134
46194
str = ZSTR_EMPTY_ALLOC();
@@ -49553,6 +49613,10 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ADD_ARRAY_ELEMENT_SPEC_CV_CV_H
49553
49613
} else if (Z_TYPE_P(offset) == IS_TRUE) {
49554
49614
hval = 1;
49555
49615
goto num_index;
49616
+ } else if (Z_TYPE_P(offset) == IS_RESOURCE) {
49617
+ zend_use_resource_as_offset(offset);
49618
+ hval = Z_RES_HANDLE_P(offset);
49619
+ goto num_index;
49556
49620
} else if (IS_CV == IS_CV && Z_TYPE_P(offset) == IS_UNDEF) {
49557
49621
ZVAL_UNDEFINED_OP2();
49558
49622
str = ZSTR_EMPTY_ALLOC();
0 commit comments