@@ -3044,7 +3044,10 @@ static int ZEND_FASTCALL ZEND_FE_RESET_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_A
3044
3044
3045
3045
}
3046
3046
if (iter && EXPECTED(EG(exception) == NULL)) {
3047
- zend_iterator_wrap(iter, array_ptr TSRMLS_CC);
3047
+ zval iterator;
3048
+
3049
+ array_ptr = &iterator;
3050
+ ZVAL_OBJ(array_ptr, &iter->std);
3048
3051
} else {
3049
3052
if (IS_CONST == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
3050
3053
@@ -8095,7 +8098,10 @@ static int ZEND_FASTCALL ZEND_FE_RESET_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARG
8095
8098
8096
8099
}
8097
8100
if (iter && EXPECTED(EG(exception) == NULL)) {
8098
- zend_iterator_wrap(iter, array_ptr TSRMLS_CC);
8101
+ zval iterator;
8102
+
8103
+ array_ptr = &iterator;
8104
+ ZVAL_OBJ(array_ptr, &iter->std);
8099
8105
} else {
8100
8106
if (IS_TMP_VAR == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
8101
8107
@@ -13198,7 +13204,10 @@ static int ZEND_FASTCALL ZEND_FE_RESET_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARG
13198
13204
zval_ptr_dtor_nogc(free_op1.var);
13199
13205
}
13200
13206
if (iter && EXPECTED(EG(exception) == NULL)) {
13201
- zend_iterator_wrap(iter, array_ptr TSRMLS_CC);
13207
+ zval iterator;
13208
+
13209
+ array_ptr = &iterator;
13210
+ ZVAL_OBJ(array_ptr, &iter->std);
13202
13211
} else {
13203
13212
if (IS_VAR == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
13204
13213
if (free_op1.var) {zval_ptr_dtor_nogc(free_op1.var);};
@@ -30089,7 +30098,10 @@ static int ZEND_FASTCALL ZEND_FE_RESET_SPEC_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS
30089
30098
30090
30099
}
30091
30100
if (iter && EXPECTED(EG(exception) == NULL)) {
30092
- zend_iterator_wrap(iter, array_ptr TSRMLS_CC);
30101
+ zval iterator;
30102
+
30103
+ array_ptr = &iterator;
30104
+ ZVAL_OBJ(array_ptr, &iter->std);
30093
30105
} else {
30094
30106
if (IS_CV == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
30095
30107
0 commit comments