summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-20 13:50:16 +0000
committerWez Furlong <wez@php.net>2002-03-20 13:50:16 +0000
commit14d62c7b624cdcec1006c7d164bfb12b10ae18e5 (patch)
treea577f880bae957f5ced6ecf32ca2d8ab6b6a1474
parent350de12bc24472ccf20ff9a8b39a6da0185c070d (diff)
downloadphp-git-14d62c7b624cdcec1006c7d164bfb12b10ae18e5.tar.gz
Add parameter here too...
-rw-r--r--ext/zlib/zlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 76aafb3ee6..f4323a8b8b 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -261,6 +261,7 @@ static gzFile php_gzopen_wrapper(char *path, char *mode, int options TSRMLS_DC)
if (ret) {
/* arrange to clean up the actual stream */
ZEND_REGISTER_RESOURCE(NULL, stream, php_file_le_stream());
+/* php_stream_auto_cleanup(stream); */
return ret;
}
}
@@ -300,7 +301,7 @@ PHP_FUNCTION(gzfile)
convert_to_string_ex(filename);
/* using a stream here is a bit more efficient (resource wise) than php_gzopen_wrapper */
- stream = php_stream_gzopen(Z_STRVAL_PP(filename), "rb", use_include_path|ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL STREAMS_CC TSRMLS_CC);
+ stream = php_stream_gzopen(Z_STRVAL_PP(filename), "rb", use_include_path|ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL, NULL STREAMS_CC TSRMLS_CC);
if (stream == NULL) {
php_error(E_WARNING,"gzFile(\"%s\") - %s",Z_STRVAL_PP(filename),strerror(errno));
RETURN_FALSE;