]> granicus.if.org Git - php/commitdiff
eliminate a couple of compile warnings
authorAntony Dovgal <tony2001@php.net>
Thu, 9 Nov 2006 01:06:45 +0000 (01:06 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 9 Nov 2006 01:06:45 +0000 (01:06 +0000)
main/php_streams.h
main/streams/streams.c

index 0a422e664b186c8ceb933fcd8df61a3eac8b04f2..f53563d57f17c2c80ab61b4f66c61c6dfeb74a6a 100755 (executable)
@@ -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)
index 6cdb15853772fa3400280345f5fcd1c48b90394e..1f5e2b72d6ac862f101baa37e35204f777b34194 100755 (executable)
@@ -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;