@@ -815,7 +815,7 @@ static bool zend_verify_weak_scalar_type_hint_no_sideeffect(uint32_t type_mask,
815
815
}
816
816
#endif
817
817
818
- ZEND_API bool zend_verify_scalar_type_hint (uint32_t type_mask , zval * arg , bool strict , bool is_internal_arg )
818
+ static bool zend_verify_scalar_type_hint (uint32_t type_mask , zval * arg , bool strict , bool is_internal_arg )
819
819
{
820
820
if (UNEXPECTED (strict )) {
821
821
/* SSTH Exception: IS_LONG may be accepted as IS_DOUBLE (converted) */
@@ -836,7 +836,7 @@ ZEND_API bool zend_verify_scalar_type_hint(uint32_t type_mask, zval *arg, bool s
836
836
return zend_verify_weak_scalar_type_hint (type_mask , arg );
837
837
}
838
838
839
- ZEND_COLD zend_never_inline void zend_verify_class_constant_type_error (const zend_class_constant * c , const zend_string * name , const zval * constant )
839
+ static ZEND_COLD zend_never_inline void zend_verify_class_constant_type_error (const zend_class_constant * c , const zend_string * name , const zval * constant )
840
840
{
841
841
zend_string * type_str = zend_type_to_string (c -> type );
842
842
@@ -846,7 +846,7 @@ ZEND_COLD zend_never_inline void zend_verify_class_constant_type_error(const zen
846
846
zend_string_release (type_str );
847
847
}
848
848
849
- ZEND_COLD zend_never_inline void zend_verify_property_type_error (const zend_property_info * info , const zval * property )
849
+ static ZEND_COLD zend_never_inline void zend_verify_property_type_error (const zend_property_info * info , const zval * property )
850
850
{
851
851
zend_string * type_str ;
852
852
@@ -864,7 +864,7 @@ ZEND_COLD zend_never_inline void zend_verify_property_type_error(const zend_prop
864
864
zend_string_release (type_str );
865
865
}
866
866
867
- ZEND_COLD zend_never_inline void zend_magic_get_property_type_inconsistency_error (const zend_property_info * info , const zval * property )
867
+ static ZEND_COLD zend_never_inline void zend_magic_get_property_type_inconsistency_error (const zend_property_info * info , const zval * property )
868
868
{
869
869
/* we _may_ land here in case reading already errored and runtime cache thus has not been updated (i.e. it contains a valid but unrelated info) */
870
870
if (EG (exception )) {
@@ -3778,7 +3778,7 @@ ZEND_API zval* ZEND_FASTCALL zend_fetch_static_property(zend_execute_data *ex, i
3778
3778
return result ;
3779
3779
}
3780
3780
3781
- ZEND_API ZEND_COLD void zend_throw_ref_type_error_type (const zend_property_info * prop1 , const zend_property_info * prop2 , const zval * zv ) {
3781
+ static ZEND_COLD void zend_throw_ref_type_error_type (const zend_property_info * prop1 , const zend_property_info * prop2 , const zval * zv ) {
3782
3782
zend_string * type1_str = zend_type_to_string (prop1 -> type );
3783
3783
zend_string * type2_str = zend_type_to_string (prop2 -> type );
3784
3784
zend_type_error ("Reference with value of type %s held by property %s::$%s of type %s is not compatible with property %s::$%s of type %s" ,
@@ -3794,7 +3794,7 @@ ZEND_API ZEND_COLD void zend_throw_ref_type_error_type(const zend_property_info
3794
3794
zend_string_release (type2_str );
3795
3795
}
3796
3796
3797
- ZEND_API ZEND_COLD void zend_throw_ref_type_error_zval (const zend_property_info * prop , const zval * zv ) {
3797
+ static ZEND_COLD void zend_throw_ref_type_error_zval (const zend_property_info * prop , const zval * zv ) {
3798
3798
zend_string * type_str = zend_type_to_string (prop -> type );
3799
3799
zend_type_error ("Cannot assign %s to reference held by property %s::$%s of type %s" ,
3800
3800
zend_zval_value_name (zv ),
0 commit comments