@@ -34,7 +34,7 @@ typedef struct _php_hashcontext_object php_hashcontext_object;
3434typedef void (* php_hash_init_func_t )(void * context , HashTable * args );
3535typedef void (* php_hash_update_func_t )(void * context , const unsigned char * buf , size_t count );
3636typedef void (* php_hash_final_func_t )(unsigned char * digest , void * context );
37- typedef int (* php_hash_copy_func_t )(const void * ops , void * orig_context , void * dest_context );
37+ typedef int (* php_hash_copy_func_t )(const void * ops , const void * orig_context , void * dest_context );
3838typedef int (* php_hash_serialize_func_t )(const php_hashcontext_object * hash , zend_long * magic , zval * zv );
3939typedef int (* php_hash_unserialize_func_t )(php_hashcontext_object * hash , zend_long magic , const zval * zv );
4040
@@ -147,7 +147,7 @@ extern zend_module_entry hash_module_entry;
147147extern PHP_HASH_API zend_class_entry * php_hashcontext_ce ;
148148PHP_HASH_API const php_hash_ops * php_hash_fetch_ops (zend_string * algo );
149149PHP_HASH_API void php_hash_register_algo (const char * algo , const php_hash_ops * ops );
150- PHP_HASH_API int php_hash_copy (const void * ops , void * orig_context , void * dest_context );
150+ PHP_HASH_API int php_hash_copy (const void * ops , const void * orig_context , void * dest_context );
151151PHP_HASH_API int php_hash_serialize (const php_hashcontext_object * context , zend_long * magic , zval * zv );
152152PHP_HASH_API int php_hash_unserialize (php_hashcontext_object * context , zend_long magic , const zval * zv );
153153PHP_HASH_API int php_hash_serialize_spec (const php_hashcontext_object * context , zval * zv , const char * spec );
0 commit comments