@@ -813,9 +813,9 @@ static zend_always_inline const char *zend_get_object_type_uc(const zend_class_e
813
813
return zend_get_object_type_case (ce , true);
814
814
}
815
815
816
- ZEND_API bool zend_is_iterable (zval * iterable );
816
+ ZEND_API bool zend_is_iterable (const zval * iterable );
817
817
818
- ZEND_API bool zend_is_countable (zval * countable );
818
+ ZEND_API bool zend_is_countable (const zval * countable );
819
819
820
820
ZEND_API zend_result zend_get_default_from_internal_arg_info (
821
821
zval * default_value_zval , zend_internal_arg_info * arg_info );
@@ -2036,18 +2036,18 @@ ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *
2036
2036
/* Inlined implementations shared by new and old parameter parsing APIs */
2037
2037
2038
2038
ZEND_API bool ZEND_FASTCALL zend_parse_arg_class (zval * arg , zend_class_entry * * pce , uint32_t num , bool check_null );
2039
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow (zval * arg , bool * dest , uint32_t arg_num );
2040
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak (zval * arg , bool * dest , uint32_t arg_num );
2041
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow (zval * arg , zend_long * dest , uint32_t arg_num );
2042
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak (zval * arg , zend_long * dest , uint32_t arg_num );
2043
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow (zval * arg , double * dest , uint32_t arg_num );
2044
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak (zval * arg , double * dest , uint32_t arg_num );
2039
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow (const zval * arg , bool * dest , uint32_t arg_num );
2040
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak (const zval * arg , bool * dest , uint32_t arg_num );
2041
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow (const zval * arg , zend_long * dest , uint32_t arg_num );
2042
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak (const zval * arg , zend_long * dest , uint32_t arg_num );
2043
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow (const zval * arg , double * dest , uint32_t arg_num );
2044
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak (const zval * arg , double * dest , uint32_t arg_num );
2045
2045
ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow (zval * arg , zend_string * * dest , uint32_t arg_num );
2046
2046
ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak (zval * arg , zend_string * * dest , uint32_t arg_num );
2047
2047
ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow (zval * arg , zval * * dest , uint32_t arg_num );
2048
2048
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 );
2049
2049
2050
- static zend_always_inline bool zend_parse_arg_bool (zval * arg , bool * dest , bool * is_null , bool check_null , uint32_t arg_num )
2050
+ static zend_always_inline bool zend_parse_arg_bool (const zval * arg , bool * dest , bool * is_null , bool check_null , uint32_t arg_num )
2051
2051
{
2052
2052
if (check_null ) {
2053
2053
* is_null = 0 ;
@@ -2081,7 +2081,7 @@ static zend_always_inline bool zend_parse_arg_long(zval *arg, zend_long *dest, b
2081
2081
return 1 ;
2082
2082
}
2083
2083
2084
- static zend_always_inline bool zend_parse_arg_double (zval * arg , double * dest , bool * is_null , bool check_null , uint32_t arg_num )
2084
+ static zend_always_inline bool zend_parse_arg_double (const zval * arg , double * dest , bool * is_null , bool check_null , uint32_t arg_num )
2085
2085
{
2086
2086
if (check_null ) {
2087
2087
* is_null = 0 ;
@@ -2192,7 +2192,7 @@ static zend_always_inline bool zend_parse_arg_array(zval *arg, zval **dest, bool
2192
2192
return 1 ;
2193
2193
}
2194
2194
2195
- static zend_always_inline bool zend_parse_arg_array_ht (zval * arg , HashTable * * dest , bool check_null , bool or_object , bool separate )
2195
+ static zend_always_inline bool zend_parse_arg_array_ht (const zval * arg , HashTable * * dest , bool check_null , bool or_object , bool separate )
2196
2196
{
2197
2197
if (EXPECTED (Z_TYPE_P (arg ) == IS_ARRAY )) {
2198
2198
* dest = Z_ARRVAL_P (arg );
@@ -2251,7 +2251,7 @@ static zend_always_inline bool zend_parse_arg_object(zval *arg, zval **dest, zen
2251
2251
return 1 ;
2252
2252
}
2253
2253
2254
- static zend_always_inline bool zend_parse_arg_obj (zval * arg , zend_object * * dest , zend_class_entry * ce , bool check_null )
2254
+ static zend_always_inline bool zend_parse_arg_obj (const zval * arg , zend_object * * dest , zend_class_entry * ce , bool check_null )
2255
2255
{
2256
2256
if (EXPECTED (Z_TYPE_P (arg ) == IS_OBJECT ) &&
2257
2257
(!ce || EXPECTED (instanceof_function (Z_OBJCE_P (arg ), ce ) != 0 ))) {
0 commit comments