@@ -319,7 +319,7 @@ static php_stream *phar_make_dirstream(char *dir, HashTable *manifest TSRMLS_DC)
319319/**
320320 * Open a directory handle within a phar archive
321321 */
322- php_stream * phar_wrapper_open_dir (php_stream_wrapper * wrapper , char * path , char * mode , int options , char * * opened_path , php_stream_context * context STREAMS_DC TSRMLS_DC ) /* {{{ */
322+ php_stream * phar_wrapper_open_dir (php_stream_wrapper * wrapper , const char * path , const char * mode , int options , char * * opened_path , php_stream_context * context STREAMS_DC TSRMLS_DC ) /* {{{ */
323323{
324324 php_url * resource = NULL ;
325325 php_stream * ret ;
@@ -432,7 +432,7 @@ php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, char *path, char
432432/**
433433 * Make a new directory within a phar archive
434434 */
435- int phar_wrapper_mkdir (php_stream_wrapper * wrapper , char * url_from , int mode , int options , php_stream_context * context TSRMLS_DC ) /* {{{ */
435+ int phar_wrapper_mkdir (php_stream_wrapper * wrapper , const char * url_from , int mode , int options , php_stream_context * context TSRMLS_DC ) /* {{{ */
436436{
437437 phar_entry_info entry , * e ;
438438 phar_archive_data * phar = NULL ;
@@ -564,7 +564,7 @@ int phar_wrapper_mkdir(php_stream_wrapper *wrapper, char *url_from, int mode, in
564564/**
565565 * Remove a directory within a phar archive
566566 */
567- int phar_wrapper_rmdir (php_stream_wrapper * wrapper , char * url , int options , php_stream_context * context TSRMLS_DC ) /* {{{ */
567+ int phar_wrapper_rmdir (php_stream_wrapper * wrapper , const char * url , int options , php_stream_context * context TSRMLS_DC ) /* {{{ */
568568{
569569 phar_entry_info * entry ;
570570 phar_archive_data * phar = NULL ;
0 commit comments