@@ -904,9 +904,9 @@ static zend_always_inline const char *zend_get_object_type_uc(const zend_class_e
904
904
return zend_get_object_type_case (ce , true);
905
905
}
906
906
907
- ZEND_API bool zend_is_iterable (zval * iterable );
907
+ ZEND_API bool zend_is_iterable (const zval * iterable );
908
908
909
- ZEND_API bool zend_is_countable (zval * countable );
909
+ ZEND_API bool zend_is_countable (const zval * countable );
910
910
911
911
ZEND_API zend_result zend_get_default_from_internal_arg_info (
912
912
zval * default_value_zval , zend_internal_arg_info * arg_info );
@@ -2127,18 +2127,18 @@ ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *
2127
2127
/* Inlined implementations shared by new and old parameter parsing APIs */
2128
2128
2129
2129
ZEND_API bool ZEND_FASTCALL zend_parse_arg_class (zval * arg , zend_class_entry * * pce , uint32_t num , bool check_null );
2130
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow (zval * arg , bool * dest , uint32_t arg_num );
2131
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak (zval * arg , bool * dest , uint32_t arg_num );
2132
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow (zval * arg , zend_long * dest , uint32_t arg_num );
2133
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak (zval * arg , zend_long * dest , uint32_t arg_num );
2134
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow (zval * arg , double * dest , uint32_t arg_num );
2135
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak (zval * arg , double * dest , uint32_t arg_num );
2130
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow (const zval * arg , bool * dest , uint32_t arg_num );
2131
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak (const zval * arg , bool * dest , uint32_t arg_num );
2132
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow (const zval * arg , zend_long * dest , uint32_t arg_num );
2133
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak (const zval * arg , zend_long * dest , uint32_t arg_num );
2134
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow (const zval * arg , double * dest , uint32_t arg_num );
2135
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak (const zval * arg , double * dest , uint32_t arg_num );
2136
2136
ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow (zval * arg , zend_string * * dest , uint32_t arg_num );
2137
2137
ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak (zval * arg , zend_string * * dest , uint32_t arg_num );
2138
2138
ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow (zval * arg , zval * * dest , uint32_t arg_num );
2139
2139
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 );
2140
2140
2141
- static zend_always_inline bool zend_parse_arg_bool (zval * arg , bool * dest , bool * is_null , bool check_null , uint32_t arg_num )
2141
+ static zend_always_inline bool zend_parse_arg_bool (const zval * arg , bool * dest , bool * is_null , bool check_null , uint32_t arg_num )
2142
2142
{
2143
2143
if (check_null ) {
2144
2144
* is_null = 0 ;
@@ -2172,7 +2172,7 @@ static zend_always_inline bool zend_parse_arg_long(zval *arg, zend_long *dest, b
2172
2172
return 1 ;
2173
2173
}
2174
2174
2175
- static zend_always_inline bool zend_parse_arg_double (zval * arg , double * dest , bool * is_null , bool check_null , uint32_t arg_num )
2175
+ static zend_always_inline bool zend_parse_arg_double (const zval * arg , double * dest , bool * is_null , bool check_null , uint32_t arg_num )
2176
2176
{
2177
2177
if (check_null ) {
2178
2178
* is_null = 0 ;
@@ -2283,7 +2283,7 @@ static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool
2283
2283
return 1 ;
2284
2284
}
2285
2285
2286
- static zend_always_inline bool zend_parse_arg_array_ht (zval * arg , HashTable * * dest , bool check_null , bool or_object , bool separate )
2286
+ static zend_always_inline bool zend_parse_arg_array_ht (const zval * arg , HashTable * * dest , bool check_null , bool or_object , bool separate )
2287
2287
{
2288
2288
if (EXPECTED (Z_TYPE_P (arg ) == IS_ARRAY )) {
2289
2289
* dest = Z_ARRVAL_P (arg );
@@ -2342,7 +2342,7 @@ static zend_always_inline bool zend_parse_arg_object(zval *arg, zval **dest, zen
2342
2342
return 1 ;
2343
2343
}
2344
2344
2345
- static zend_always_inline bool zend_parse_arg_obj (zval * arg , zend_object * * dest , zend_class_entry * ce , bool check_null )
2345
+ static zend_always_inline bool zend_parse_arg_obj (const zval * arg , zend_object * * dest , zend_class_entry * ce , bool check_null )
2346
2346
{
2347
2347
if (EXPECTED (Z_TYPE_P (arg ) == IS_OBJECT ) &&
2348
2348
(!ce || EXPECTED (instanceof_function (Z_OBJCE_P (arg ), ce ) != 0 ))) {
0 commit comments