Skip to content

Commit 9f8af56

Browse files
committed
Reset VM
1 parent 87ed370 commit 9f8af56

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed

Zend/zend_vm_def.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3240,6 +3240,8 @@ ZEND_VM_COLD_CONSTCONST_HANDLER(53, ZEND_FAST_CONCAT, CONST|TMPVAR|CV, CONST|TMP
32403240
{
32413241
USE_OPLINE
32423242
zval *op1, *op2;
3243+
zend_string *op1_str, *op2_str, *str;
3244+
32433245

32443246
op1 = GET_OP1_ZVAL_PTR_UNDEF(BP_VAR_R);
32453247
op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
@@ -3296,7 +3298,6 @@ ZEND_VM_COLD_CONSTCONST_HANDLER(53, ZEND_FAST_CONCAT, CONST|TMPVAR|CV, CONST|TMP
32963298
}
32973299

32983300
SAVE_OPLINE();
3299-
zend_string *op1_str, *op2_str;
33003301
if (OP1_TYPE == IS_CONST) {
33013302
op1_str = Z_STR_P(op1);
33023303
} else if (EXPECTED(Z_TYPE_P(op1) == IS_STRING)) {
@@ -3342,7 +3343,7 @@ ZEND_VM_COLD_CONSTCONST_HANDLER(53, ZEND_FAST_CONCAT, CONST|TMPVAR|CV, CONST|TMP
33423343
break;
33433344
}
33443345
}
3345-
zend_string *str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
3346+
str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
33463347
memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
33473348
memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
33483349

Zend/zend_vm_execute.h

Lines changed: 27 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)