mirror of
https://github.com/php/php-src.git
synced 2025-01-19 02:03:47 +08:00
Added type inference rule for FETCH_THIS opcode
This commit is contained in:
parent
73f8d14a85
commit
59a9a6c83c
@ -3238,6 +3238,10 @@ static void zend_update_type_info(const zend_op_array *op_array,
|
||||
}
|
||||
UPDATE_SSA_TYPE(tmp, ssa_ops[i].result_def);
|
||||
break;
|
||||
case ZEND_FETCH_THIS:
|
||||
UPDATE_SSA_OBJ_TYPE(op_array->scope, 1, ssa_ops[i].result_def);
|
||||
UPDATE_SSA_TYPE(MAY_BE_RC1|MAY_BE_RCN|MAY_BE_OBJECT, ssa_ops[i].result_def);
|
||||
break;
|
||||
case ZEND_FETCH_OBJ_R:
|
||||
case ZEND_FETCH_OBJ_IS:
|
||||
case ZEND_FETCH_OBJ_RW:
|
||||
|
Loading…
Reference in New Issue
Block a user