Skip to content

Commit 2900439

Browse files
committed
revert unrelated changes
1 parent b514401 commit 2900439

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_vm_def.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2636,10 +2636,11 @@ ZEND_VM_HANDLER(200, ZEND_ASSIGN_OBJ_REF, VAR|UNUSED|THIS|CV, CONST|TMPVAR|CV, C
26362636
} else if (OP_DATA_TYPE == IS_VAR && UNEXPECTED(Z_ISERROR_P(value_ptr))) {
26372637
variable_ptr = &EG(uninitialized_zval);
26382638
} else if (OP_DATA_TYPE == IS_VAR &&
2639-
opline->extended_value == ZEND_RETURNS_FUNCTION &&
2639+
(opline->extended_value & ZEND_RETURNS_FUNCTION) &&
26402640
UNEXPECTED(!Z_ISREF_P(value_ptr))) {
26412641

26422642
if (UNEXPECTED(!zend_wrong_assign_to_variable_reference(
2643+
variable_ptr, value_ptr OPLINE_CC EXECUTE_DATA_CC))) {
26432644
Z_INDIRECT_P(variable_ptr), value_ptr OPLINE_CC EXECUTE_DATA_CC))) {
26442645
variable_ptr = &EG(uninitialized_zval);
26452646
}

0 commit comments

Comments
 (0)