diff options
author | Wez Furlong <wez@php.net> | 2002-03-17 22:50:59 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-17 22:50:59 +0000 |
commit | d2d8762267de33b954363189b4ec710e70527a2a (patch) | |
tree | eb1a94dcc817decc20651b5999ccf3ea7699aadc /ext/zlib/zlib.c | |
parent | 19e82a49f96393a7ae93331db73ef895f3c61376 (diff) | |
download | php-git-d2d8762267de33b954363189b4ec710e70527a2a.tar.gz |
Streams now make more use of the memory manager, so tracking down
leaking streams should be easier.
# I hate these big commits
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r-- | ext/zlib/zlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 44edcbdcd3..35ef2a179d 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -188,7 +188,7 @@ PHP_MINIT_FUNCTION(zlib) le_zp = zend_register_list_destructors_ex(phpi_destructor_gzclose, NULL, "zlib", module_number); if(PG(allow_url_fopen)) { - php_register_url_stream_wrapper("zlib", &php_stream_gzip_wrapper TSRMLS_CC); + php_register_url_stream_wrapper("zlib", &php_stream_gzip_wrapper); } REGISTER_LONG_CONSTANT("FORCE_GZIP", CODING_GZIP, CONST_CS | CONST_PERSISTENT); @@ -255,7 +255,7 @@ static gzFile php_gzopen_wrapper(char *path, char *mode, int options TSRMLS_DC) php_stream *stream = NULL; int fd; - stream = php_stream_open_wrapper(path, mode, options | REPORT_ERRORS, NULL TSRMLS_CC); + stream = php_stream_open_wrapper(path, mode, options | REPORT_ERRORS, NULL); if (stream) { if (SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD|PHP_STREAM_CAST_TRY_HARD, (void**)&fd, 1)) { @@ -302,7 +302,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 TSRMLS_CC); + stream = php_stream_gzopen(Z_STRVAL_PP(filename), "rb", use_include_path|ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL STREAMS_CC); if (stream == NULL) { php_error(E_WARNING,"gzFile(\"%s\") - %s",Z_STRVAL_PP(filename),strerror(errno)); RETURN_FALSE; |