Skip to content

Commit 264eb0d

Browse files
committed
Revert unnecessary vm change
1 parent bda5028 commit 264eb0d

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Zend/zend_vm_def.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5903,8 +5903,7 @@ ZEND_VM_HANDLER(181, ZEND_FETCH_CLASS_CONSTANT, VAR|CONST|UNUSED|CLASS_FETCH, CO
59035903
}
59045904
}
59055905
if (Z_TYPE_P(value) == IS_CONSTANT_AST) {
5906-
ce = c->ce;
5907-
zval_update_constant_ex(value, ce);
5906+
zval_update_constant_ex(value, c->ce);
59085907
if (UNEXPECTED(EG(exception) != NULL)) {
59095908
ZVAL_UNDEF(EX_VAR(opline->result.var));
59105909
HANDLE_EXCEPTION();

Zend/zend_vm_execute.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7072,8 +7072,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_CONS
70727072
}
70737073
}
70747074
if (Z_TYPE_P(value) == IS_CONSTANT_AST) {
7075-
ce = c->ce;
7076-
zval_update_constant_ex(value, ce);
7075+
zval_update_constant_ex(value, c->ce);
70777076
if (UNEXPECTED(EG(exception) != NULL)) {
70787077
ZVAL_UNDEF(EX_VAR(opline->result.var));
70797078
HANDLE_EXCEPTION();
@@ -24624,8 +24623,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_
2462424623
}
2462524624
}
2462624625
if (Z_TYPE_P(value) == IS_CONSTANT_AST) {
24627-
ce = c->ce;
24628-
zval_update_constant_ex(value, ce);
24626+
zval_update_constant_ex(value, c->ce);
2462924627
if (UNEXPECTED(EG(exception) != NULL)) {
2463024628
ZVAL_UNDEF(EX_VAR(opline->result.var));
2463124629
HANDLE_EXCEPTION();
@@ -33469,8 +33467,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUS
3346933467
}
3347033468
}
3347133469
if (Z_TYPE_P(value) == IS_CONSTANT_AST) {
33472-
ce = c->ce;
33473-
zval_update_constant_ex(value, ce);
33470+
zval_update_constant_ex(value, c->ce);
3347433471
if (UNEXPECTED(EG(exception) != NULL)) {
3347533472
ZVAL_UNDEF(EX_VAR(opline->result.var));
3347633473
HANDLE_EXCEPTION();

0 commit comments

Comments
 (0)