@@ -807,9 +807,9 @@ static zend_always_inline const char *zend_get_object_type_uc(const zend_class_e
807
807
return zend_get_object_type_case (ce , true);
808
808
}
809
809
810
- ZEND_API bool zend_is_iterable (zval * iterable );
810
+ ZEND_API bool zend_is_iterable (const zval * iterable );
811
811
812
- ZEND_API bool zend_is_countable (zval * countable );
812
+ ZEND_API bool zend_is_countable (const zval * countable );
813
813
814
814
ZEND_API zend_result zend_get_default_from_internal_arg_info (
815
815
zval * default_value_zval , zend_internal_arg_info * arg_info );
@@ -2030,18 +2030,18 @@ ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *
2030
2030
/* Inlined implementations shared by new and old parameter parsing APIs */
2031
2031
2032
2032
ZEND_API bool ZEND_FASTCALL zend_parse_arg_class (zval * arg , zend_class_entry * * pce , uint32_t num , bool check_null );
2033
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow (zval * arg , bool * dest , uint32_t arg_num );
2034
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak (zval * arg , bool * dest , uint32_t arg_num );
2035
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow (zval * arg , zend_long * dest , uint32_t arg_num );
2036
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak (zval * arg , zend_long * dest , uint32_t arg_num );
2037
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow (zval * arg , double * dest , uint32_t arg_num );
2038
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak (zval * arg , double * dest , uint32_t arg_num );
2033
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow (const zval * arg , bool * dest , uint32_t arg_num );
2034
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak (const zval * arg , bool * dest , uint32_t arg_num );
2035
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow (const zval * arg , zend_long * dest , uint32_t arg_num );
2036
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak (const zval * arg , zend_long * dest , uint32_t arg_num );
2037
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow (const zval * arg , double * dest , uint32_t arg_num );
2038
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak (const zval * arg , double * dest , uint32_t arg_num );
2039
2039
ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow (zval * arg , zend_string * * dest , uint32_t arg_num );
2040
2040
ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak (zval * arg , zend_string * * dest , uint32_t arg_num );
2041
2041
ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow (zval * arg , zval * * dest , uint32_t arg_num );
2042
2042
ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_or_long_slow (zval * arg , zend_string * * dest_str , zend_long * dest_long , uint32_t arg_num );
2043
2043
2044
- static zend_always_inline bool zend_parse_arg_bool (zval * arg , bool * dest , bool * is_null , bool check_null , uint32_t arg_num )
2044
+ static zend_always_inline bool zend_parse_arg_bool (const zval * arg , bool * dest , bool * is_null , bool check_null , uint32_t arg_num )
2045
2045
{
2046
2046
if (check_null ) {
2047
2047
* is_null = 0 ;
@@ -2075,7 +2075,7 @@ static zend_always_inline bool zend_parse_arg_long(zval *arg, zend_long *dest, b
2075
2075
return 1 ;
2076
2076
}
2077
2077
2078
- static zend_always_inline bool zend_parse_arg_double (zval * arg , double * dest , bool * is_null , bool check_null , uint32_t arg_num )
2078
+ static zend_always_inline bool zend_parse_arg_double (const zval * arg , double * dest , bool * is_null , bool check_null , uint32_t arg_num )
2079
2079
{
2080
2080
if (check_null ) {
2081
2081
* is_null = 0 ;
@@ -2186,7 +2186,7 @@ static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool
2186
2186
return 1 ;
2187
2187
}
2188
2188
2189
- static zend_always_inline bool zend_parse_arg_array_ht (zval * arg , HashTable * * dest , bool check_null , bool or_object , bool separate )
2189
+ static zend_always_inline bool zend_parse_arg_array_ht (const zval * arg , HashTable * * dest , bool check_null , bool or_object , bool separate )
2190
2190
{
2191
2191
if (EXPECTED (Z_TYPE_P (arg ) == IS_ARRAY )) {
2192
2192
* dest = Z_ARRVAL_P (arg );
@@ -2245,7 +2245,7 @@ static zend_always_inline bool zend_parse_arg_object(zval *arg, zval **dest, zen
2245
2245
return 1 ;
2246
2246
}
2247
2247
2248
- static zend_always_inline bool zend_parse_arg_obj (zval * arg , zend_object * * dest , zend_class_entry * ce , bool check_null )
2248
+ static zend_always_inline bool zend_parse_arg_obj (const zval * arg , zend_object * * dest , zend_class_entry * ce , bool check_null )
2249
2249
{
2250
2250
if (EXPECTED (Z_TYPE_P (arg ) == IS_OBJECT ) &&
2251
2251
(!ce || EXPECTED (instanceof_function (Z_OBJCE_P (arg ), ce ) != 0 ))) {
0 commit comments