@@ -2496,7 +2496,7 @@ static zend_always_inline zend_result _zend_update_type_info(
2496
2496
if (opline -> opcode == ZEND_ASSIGN_OBJ_OP ) {
2497
2497
prop_info = zend_fetch_prop_info (op_array , ssa , opline , ssa_op );
2498
2498
orig = t1 ;
2499
- t1 = zend_fetch_prop_type (script , prop_info , & ce );
2499
+ t1 = zend_fetch_prop_type (script , prop_info , NULL );
2500
2500
t2 = OP1_DATA_INFO ();
2501
2501
} else if (opline -> opcode == ZEND_ASSIGN_DIM_OP ) {
2502
2502
if (t1 & MAY_BE_ARRAY_OF_REF ) {
@@ -2507,7 +2507,7 @@ static zend_always_inline zend_result _zend_update_type_info(
2507
2507
t2 = OP1_DATA_INFO ();
2508
2508
} else if (opline -> opcode == ZEND_ASSIGN_STATIC_PROP_OP ) {
2509
2509
prop_info = zend_fetch_static_prop_info (script , op_array , ssa , opline );
2510
- t1 = zend_fetch_prop_type (script , prop_info , & ce );
2510
+ t1 = zend_fetch_prop_type (script , prop_info , NULL );
2511
2511
t2 = OP1_DATA_INFO ();
2512
2512
} else {
2513
2513
if (t1 & MAY_BE_REF ) {
@@ -2569,7 +2569,7 @@ static zend_always_inline zend_result _zend_update_type_info(
2569
2569
} else if (opline -> opcode == ZEND_ASSIGN_OBJ_OP ) {
2570
2570
/* The return value must also satisfy the property type */
2571
2571
if (prop_info ) {
2572
- t1 = zend_fetch_prop_type (script , prop_info , NULL );
2572
+ t1 = zend_fetch_prop_type (script , prop_info , & ce );
2573
2573
if ((t1 & (MAY_BE_LONG |MAY_BE_DOUBLE )) == MAY_BE_LONG
2574
2574
&& (tmp & (MAY_BE_LONG |MAY_BE_DOUBLE )) == MAY_BE_DOUBLE ) {
2575
2575
/* DOUBLE may be auto-converted to LONG */
@@ -2581,7 +2581,7 @@ static zend_always_inline zend_result _zend_update_type_info(
2581
2581
} else if (opline -> opcode == ZEND_ASSIGN_STATIC_PROP_OP ) {
2582
2582
/* The return value must also satisfy the property type */
2583
2583
if (prop_info ) {
2584
- t1 = zend_fetch_prop_type (script , prop_info , NULL );
2584
+ t1 = zend_fetch_prop_type (script , prop_info , & ce );
2585
2585
if ((t1 & (MAY_BE_LONG |MAY_BE_DOUBLE )) == MAY_BE_LONG
2586
2586
&& (tmp & (MAY_BE_LONG |MAY_BE_DOUBLE )) == MAY_BE_DOUBLE ) {
2587
2587
/* DOUBLE may be auto-converted to LONG */
0 commit comments