Browse Source

change char* to void* when using the 't' parameter (as noted by Andrei)

migration/RELEASE_1_0_0
Nuno Lopes 20 years ago
parent
commit
67793e71c0
  1. 9
      ext/zlib/zlib.c

9
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;
}
}

Loading…
Cancel
Save