diff options
| author | Nuno Lopes <nlopess@php.net> | 2006-07-08 21:54:49 +0000 |
|---|---|---|
| committer | Nuno Lopes <nlopess@php.net> | 2006-07-08 21:54:49 +0000 |
| commit | 67793e71c0653a0ed3978d12415a33c98e8bc59c (patch) | |
| tree | a48196692cff29befcb301208495e4b66f00862d /ext/zlib/zlib.c | |
| parent | 63ef7fd05099422297e8c72939cf30c89ae7f660 (diff) | |
| download | php-git-67793e71c0653a0ed3978d12415a33c98e8bc59c.tar.gz | |
change char* to void* when using the 't' parameter (as noted by Andrei)
Diffstat (limited to 'ext/zlib/zlib.c')
| -rw-r--r-- | ext/zlib/zlib.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 2a04392eea..ef56bc37e1 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -275,7 +275,7 @@ PHP_MINFO_FUNCTION(zlib) Read and uncompress entire .gz-file into an array */ PHP_FUNCTION(gzfile) { - char *filename; + void *filename; int filename_len; zend_uchar filename_type; long flags = 0; @@ -291,7 +291,7 @@ PHP_FUNCTION(gzfile) use_include_path = flags ? USE_PATH : 0; if (filename_type == IS_UNICODE) { - if (php_stream_path_encode(NULL, &filename, &filename_len, (UChar*)filename, filename_len, REPORT_ERRORS, NULL) == FAILURE) { + if (php_stream_path_encode(NULL, (char**)&filename, &filename_len, (UChar*)filename, filename_len, REPORT_ERRORS, NULL) == FAILURE) { RETURN_FALSE; } } @@ -323,7 +323,8 @@ PHP_FUNCTION(gzfile) Open a .gz-file and return a .gz-file pointer */ PHP_FUNCTION(gzopen) { - char *filename, *mode; + void *filename; + char *mode; int filename_len, mode_len; zend_uchar filename_type; long flags = 0; @@ -337,7 +338,7 @@ PHP_FUNCTION(gzopen) use_include_path = flags ? USE_PATH : 0; if (filename_type == IS_UNICODE) { - if (php_stream_path_encode(NULL, &filename, &filename_len, (UChar*)filename, filename_len, REPORT_ERRORS, NULL) == FAILURE) { + if (php_stream_path_encode(NULL, (char**)&filename, &filename_len, (UChar*)filename, filename_len, REPORT_ERRORS, NULL) == FAILURE) { RETURN_FALSE; } } |
