mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Added type inference rule for FETCH_THIS opcode
This commit is contained in:
parent
73f8d14a85
commit
59a9a6c83c
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue