From: Antony Dovgal Date: Thu, 9 Nov 2006 01:06:45 +0000 (+0000) Subject: eliminate a couple of compile warnings X-Git-Tag: RELEASE_1_0_0RC1~1098 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2070c4360db428759b9a86e9449eb8dd399173c;p=php eliminate a couple of compile warnings --- diff --git a/main/php_streams.h b/main/php_streams.h index 0a422e664b..f53563d57f 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -156,9 +156,9 @@ typedef struct _php_stream_wrapper_ops { int (*stream_rmdir)(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC); /* Unicode path manipulation -- Leave NULL to use UG(filesystem_encoding_conv) for conversion */ - int (*path_encode)(php_stream_wrapper *wrapper, char **encpath, int *encpath_len, UChar *path, int path_len, + int (*path_encode)(php_stream_wrapper *wrapper, char **encpath, int *encpath_len, const UChar *path, int path_len, int options, php_stream_context *context TSRMLS_DC); - int (*path_decode)(php_stream_wrapper *wrapper, UChar **decpath, int *decpath_len, char *path, int path_len, + int (*path_decode)(php_stream_wrapper *wrapper, UChar **decpath, int *decpath_len, const char *path, int path_len, int options, php_stream_context *context TSRMLS_DC); } php_stream_wrapper_ops; @@ -374,13 +374,13 @@ PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, voi #define php_stream_set_chunk_size(stream, size) _php_stream_set_option((stream), PHP_STREAM_OPTION_SET_CHUNK_SIZE, (size), NULL TSRMLS_CC) PHPAPI int _php_stream_path_encode(php_stream_wrapper *wrapper, - char **pathenc, int *pathenc_len, UChar *path, int path_len, + char **pathenc, int *pathenc_len, const UChar *path, int path_len, int options, php_stream_context *context TSRMLS_DC); #define php_stream_path_encode(wrapper, pathenc, pathenc_len, path, path_len, options, context) \ _php_stream_path_encode((wrapper), (pathenc), (pathenc_len), (path), (path_len), (options), (context) TSRMLS_CC) PHPAPI int _php_stream_path_decode(php_stream_wrapper *wrapper, - UChar **pathdec, int *pathdec_len, char *path, int path_len, + UChar **pathdec, int *pathdec_len, const char *path, int path_len, int options, php_stream_context *context TSRMLS_DC); #define php_stream_path_decode(wrapper, pathdec, pathdec_len, path, path_len, options, context) \ _php_stream_path_decode((wrapper), (pathdec), (pathdec_len), (path), (path_len), (options), (context) TSRMLS_CC) diff --git a/main/streams/streams.c b/main/streams/streams.c index 6cdb158537..1f5e2b72d6 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -2664,7 +2664,7 @@ Otherwise the INI defined filesystem_encoding converter will be used If wrapper == NULL, the path will be explored to locate the correct wrapper */ PHPAPI int _php_stream_path_encode(php_stream_wrapper *wrapper, - char **pathenc, int *pathenc_len, UChar *path, int path_len, + char **pathenc, int *pathenc_len, const UChar *path, int path_len, int options, php_stream_context *context TSRMLS_DC) { UErrorCode status = U_ZERO_ERROR; @@ -2745,7 +2745,7 @@ If the wrapper supports its own decoding rules it will be dispatched to wrapper- Otherwise (or if wrapper == NULL) the INI defined filesystem_encoding converter will be used. */ PHPAPI int _php_stream_path_decode(php_stream_wrapper *wrapper, - UChar **pathdec, int *pathdec_len, char *path, int path_len, + UChar **pathdec, int *pathdec_len, const char *path, int path_len, int options, php_stream_context *context TSRMLS_DC) { int num_conv;