@@ -261,7 +261,7 @@ ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_end_ex(const HashTable *
261
261
static zend_always_inline zend_result zend_hash_has_more_elements_ex (const HashTable * ht , const HashPosition * pos ) {
262
262
return (zend_hash_get_current_key_type_ex (ht , pos ) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS );
263
263
}
264
- static zend_always_inline zend_result zend_hash_has_more_elements (HashTable * ht ) {
264
+ static zend_always_inline zend_result zend_hash_has_more_elements (const HashTable * ht ) {
265
265
return zend_hash_has_more_elements_ex (ht , & ht -> nInternalPointer );
266
266
}
267
267
static zend_always_inline zend_result zend_hash_move_forward (HashTable * ht ) {
@@ -554,7 +554,7 @@ static zend_always_inline zval *zend_symtable_find_ind(const HashTable *ht, zend
554
554
}
555
555
556
556
557
- static zend_always_inline bool zend_symtable_exists (HashTable * ht , zend_string * key )
557
+ static zend_always_inline bool zend_symtable_exists (const HashTable * ht , zend_string * key )
558
558
{
559
559
zend_ulong idx ;
560
560
@@ -566,7 +566,7 @@ static zend_always_inline bool zend_symtable_exists(HashTable *ht, zend_string *
566
566
}
567
567
568
568
569
- static zend_always_inline bool zend_symtable_exists_ind (HashTable * ht , zend_string * key )
569
+ static zend_always_inline bool zend_symtable_exists_ind (const HashTable * ht , zend_string * key )
570
570
{
571
571
zend_ulong idx ;
572
572
@@ -937,7 +937,7 @@ static zend_always_inline void *zend_hash_index_find_ptr(const HashTable *ht, ze
937
937
}
938
938
}
939
939
940
- static zend_always_inline zval * zend_hash_index_find_deref (HashTable * ht , zend_ulong h )
940
+ static zend_always_inline zval * zend_hash_index_find_deref (const HashTable * ht , zend_ulong h )
941
941
{
942
942
zval * zv = zend_hash_index_find (ht , h );
943
943
if (zv ) {
@@ -946,7 +946,7 @@ static zend_always_inline zval *zend_hash_index_find_deref(HashTable *ht, zend_u
946
946
return zv ;
947
947
}
948
948
949
- static zend_always_inline zval * zend_hash_find_deref (HashTable * ht , zend_string * str )
949
+ static zend_always_inline zval * zend_hash_find_deref (const HashTable * ht , zend_string * str )
950
950
{
951
951
zval * zv = zend_hash_find (ht , str );
952
952
if (zv ) {
@@ -955,7 +955,7 @@ static zend_always_inline zval *zend_hash_find_deref(HashTable *ht, zend_string
955
955
return zv ;
956
956
}
957
957
958
- static zend_always_inline zval * zend_hash_str_find_deref (HashTable * ht , const char * str , size_t len )
958
+ static zend_always_inline zval * zend_hash_str_find_deref (const HashTable * ht , const char * str , size_t len )
959
959
{
960
960
zval * zv = zend_hash_str_find (ht , str , len );
961
961
if (zv ) {
@@ -964,7 +964,7 @@ static zend_always_inline zval *zend_hash_str_find_deref(HashTable *ht, const ch
964
964
return zv ;
965
965
}
966
966
967
- static zend_always_inline void * zend_symtable_str_find_ptr (HashTable * ht , const char * str , size_t len )
967
+ static zend_always_inline void * zend_symtable_str_find_ptr (const HashTable * ht , const char * str , size_t len )
968
968
{
969
969
zend_ulong idx ;
970
970
@@ -975,7 +975,7 @@ static zend_always_inline void *zend_symtable_str_find_ptr(HashTable *ht, const
975
975
}
976
976
}
977
977
978
- static zend_always_inline void * zend_hash_get_current_data_ptr_ex (HashTable * ht , HashPosition * pos )
978
+ static zend_always_inline void * zend_hash_get_current_data_ptr_ex (const HashTable * ht , const HashPosition * pos )
979
979
{
980
980
zval * zv ;
981
981
0 commit comments