@@ -56,7 +56,7 @@ php_stream_wrapper php_stream_phar_wrapper = {
56
56
/**
57
57
* Open a phar file for streams API
58
58
*/
59
- php_url * phar_parse_url (php_stream_wrapper * wrapper , char * filename , char * mode , int options TSRMLS_DC ) /* {{{ */
59
+ php_url * phar_parse_url (php_stream_wrapper * wrapper , const char * filename , const char * mode , int options TSRMLS_DC ) /* {{{ */
60
60
{
61
61
php_url * resource ;
62
62
char * arch = NULL , * entry = NULL , * error ;
@@ -155,7 +155,7 @@ php_url* phar_parse_url(php_stream_wrapper *wrapper, char *filename, char *mode,
155
155
/**
156
156
* used for fopen('phar://...') and company
157
157
*/
158
- static php_stream * phar_wrapper_open_url (php_stream_wrapper * wrapper , char * path , char * mode , int options , char * * opened_path , php_stream_context * context STREAMS_DC TSRMLS_DC ) /* {{{ */
158
+ static php_stream * phar_wrapper_open_url (php_stream_wrapper * wrapper , const char * path , const char * mode , int options , char * * opened_path , php_stream_context * context STREAMS_DC TSRMLS_DC ) /* {{{ */
159
159
{
160
160
phar_archive_data * phar ;
161
161
phar_entry_data * idata ;
@@ -563,7 +563,7 @@ static int phar_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_D
563
563
/**
564
564
* Stream wrapper stat implementation of stat()
565
565
*/
566
- static int phar_wrapper_stat (php_stream_wrapper * wrapper , char * url , int flags ,
566
+ static int phar_wrapper_stat (php_stream_wrapper * wrapper , const char * url , int flags ,
567
567
php_stream_statbuf * ssb , php_stream_context * context TSRMLS_DC ) /* {{{ */
568
568
{
569
569
php_url * resource = NULL ;
@@ -686,7 +686,7 @@ static int phar_wrapper_stat(php_stream_wrapper *wrapper, char *url, int flags,
686
686
/**
687
687
* Unlink a file within a phar archive
688
688
*/
689
- static int phar_wrapper_unlink (php_stream_wrapper * wrapper , char * url , int options , php_stream_context * context TSRMLS_DC ) /* {{{ */
689
+ static int phar_wrapper_unlink (php_stream_wrapper * wrapper , const char * url , int options , php_stream_context * context TSRMLS_DC ) /* {{{ */
690
690
{
691
691
php_url * resource ;
692
692
char * internal_file , * error ;
@@ -762,7 +762,7 @@ static int phar_wrapper_unlink(php_stream_wrapper *wrapper, char *url, int optio
762
762
}
763
763
/* }}} */
764
764
765
- static int phar_wrapper_rename (php_stream_wrapper * wrapper , char * url_from , char * url_to , int options , php_stream_context * context TSRMLS_DC ) /* {{{ */
765
+ static int phar_wrapper_rename (php_stream_wrapper * wrapper , const char * url_from , const char * url_to , int options , php_stream_context * context TSRMLS_DC ) /* {{{ */
766
766
{
767
767
php_url * resource_from , * resource_to ;
768
768
char * error ;
0 commit comments