mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix updating SSA object type for *_ASSIGN_OP (#10458)
This commit is contained in:
commit
e3aa73904a
1 changed files with 4 additions and 4 deletions
|
@ -2496,7 +2496,7 @@ static zend_always_inline zend_result _zend_update_type_info(
|
|||
if (opline->opcode == ZEND_ASSIGN_OBJ_OP) {
|
||||
prop_info = zend_fetch_prop_info(op_array, ssa, opline, ssa_op);
|
||||
orig = t1;
|
||||
t1 = zend_fetch_prop_type(script, prop_info, &ce);
|
||||
t1 = zend_fetch_prop_type(script, prop_info, NULL);
|
||||
t2 = OP1_DATA_INFO();
|
||||
} else if (opline->opcode == ZEND_ASSIGN_DIM_OP) {
|
||||
if (t1 & MAY_BE_ARRAY_OF_REF) {
|
||||
|
@ -2507,7 +2507,7 @@ static zend_always_inline zend_result _zend_update_type_info(
|
|||
t2 = OP1_DATA_INFO();
|
||||
} else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) {
|
||||
prop_info = zend_fetch_static_prop_info(script, op_array, ssa, opline);
|
||||
t1 = zend_fetch_prop_type(script, prop_info, &ce);
|
||||
t1 = zend_fetch_prop_type(script, prop_info, NULL);
|
||||
t2 = OP1_DATA_INFO();
|
||||
} else {
|
||||
if (t1 & MAY_BE_REF) {
|
||||
|
@ -2569,7 +2569,7 @@ static zend_always_inline zend_result _zend_update_type_info(
|
|||
} else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) {
|
||||
/* The return value must also satisfy the property type */
|
||||
if (prop_info) {
|
||||
t1 = zend_fetch_prop_type(script, prop_info, NULL);
|
||||
t1 = zend_fetch_prop_type(script, prop_info, &ce);
|
||||
if ((t1 & (MAY_BE_LONG|MAY_BE_DOUBLE)) == MAY_BE_LONG
|
||||
&& (tmp & (MAY_BE_LONG|MAY_BE_DOUBLE)) == MAY_BE_DOUBLE) {
|
||||
/* DOUBLE may be auto-converted to LONG */
|
||||
|
@ -2581,7 +2581,7 @@ static zend_always_inline zend_result _zend_update_type_info(
|
|||
} else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) {
|
||||
/* The return value must also satisfy the property type */
|
||||
if (prop_info) {
|
||||
t1 = zend_fetch_prop_type(script, prop_info, NULL);
|
||||
t1 = zend_fetch_prop_type(script, prop_info, &ce);
|
||||
if ((t1 & (MAY_BE_LONG|MAY_BE_DOUBLE)) == MAY_BE_LONG
|
||||
&& (tmp & (MAY_BE_LONG|MAY_BE_DOUBLE)) == MAY_BE_DOUBLE) {
|
||||
/* DOUBLE may be auto-converted to LONG */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue