summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c9
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;
}
}