cvs: php4 /ext/zlib zlib.c

From: Date: Wed, 20 Mar 2002 13:50:18 +0000
Subject: cvs: php4 /ext/zlib zlib.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10482@lists.php.net to get a copy of this message
wez Wed Mar 20 08:50:18 2002 EDT Modified files: /php4/ext/zlib zlib.c Log: Add parameter here too... Index: php4/ext/zlib/zlib.c diff -u php4/ext/zlib/zlib.c:1.115 php4/ext/zlib/zlib.c:1.116 --- php4/ext/zlib/zlib.c:1.115 Mon Mar 18 22:51:01 2002 +++ php4/ext/zlib/zlib.c Wed Mar 20 08:50:16 2002 @@ -18,7 +18,7 @@ | Jade Nicoletti <nicoletti@nns.ch> | +----------------------------------------------------------------------+ */ -/* $Id: zlib.c,v 1.115 2002/03/19 03:51:01 wez Exp $ */ +/* $Id: zlib.c,v 1.116 2002/03/20 13:50:16 wez Exp $ */ #define IS_EXT_MODULE #ifdef HAVE_CONFIG_H @@ -261,6 +261,7 @@ 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 @@ 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;

« previous php.cvs (#10482) next »