@@ -1521,9 +1521,9 @@ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_illegal_array_offset_
1521
1521
zend_illegal_container_offset (ZSTR_KNOWN (ZEND_STR_ARRAY ), offset , BP_VAR_UNSET );
1522
1522
}
1523
1523
1524
- static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_illegal_string_offset_access (const zval * offset )
1524
+ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_illegal_string_offset (const zval * offset , int type )
1525
1525
{
1526
- zend_illegal_container_offset (ZSTR_KNOWN (ZEND_STR_STRING ), offset , BP_VAR_RW );
1526
+ zend_illegal_container_offset (ZSTR_KNOWN (ZEND_STR_STRING ), offset , type );
1527
1527
}
1528
1528
1529
1529
static zend_never_inline void zend_assign_to_object_dim (zend_object * obj , zval * dim , zval * value OPLINE_DC EXECUTE_DATA_DC )
@@ -1651,7 +1651,7 @@ static zend_never_inline zend_long zend_check_string_offset(zval *dim, int type
1651
1651
}
1652
1652
return offset ;
1653
1653
}
1654
- zend_illegal_string_offset_access (dim );
1654
+ zend_illegal_string_offset (dim , type );
1655
1655
return 0 ;
1656
1656
}
1657
1657
case IS_UNDEF :
@@ -1667,7 +1667,7 @@ static zend_never_inline zend_long zend_check_string_offset(zval *dim, int type
1667
1667
dim = Z_REFVAL_P (dim );
1668
1668
goto try_again ;
1669
1669
default :
1670
- zend_illegal_string_offset_access (dim );
1670
+ zend_illegal_string_offset (dim , type );
1671
1671
return 0 ;
1672
1672
}
1673
1673
@@ -2762,7 +2762,7 @@ static zend_always_inline void zend_fetch_dimension_address_read(zval *result, z
2762
2762
ZVAL_NULL (result );
2763
2763
return ;
2764
2764
}
2765
- zend_illegal_string_offset_access (dim );
2765
+ zend_illegal_string_offset (dim , BP_VAR_R );
2766
2766
ZVAL_NULL (result );
2767
2767
return ;
2768
2768
}
@@ -2801,7 +2801,7 @@ static zend_always_inline void zend_fetch_dimension_address_read(zval *result, z
2801
2801
dim = Z_REFVAL_P (dim );
2802
2802
goto try_string_offset ;
2803
2803
default :
2804
- zend_illegal_string_offset_access (dim );
2804
+ zend_illegal_string_offset (dim , BP_VAR_R );
2805
2805
ZVAL_NULL (result );
2806
2806
return ;
2807
2807
}
0 commit comments