cvs: php4 /ext/zlib zlib_fopen_wrapper.c
| From: | Wez Furlong | Date: | Tue, 15 Oct 2002 02:27:15 +0000 |
| Subject: | cvs: php4 /ext/zlib zlib_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14929@lists.php.net to get a copy of this message | ||
wez Mon Oct 14 22:27:15 2002 EDT
Modified files:
/php4/ext/zlib zlib_fopen_wrapper.c
Log:
Don't use streams-level buffer on zlib streams.
Index: php4/ext/zlib/zlib_fopen_wrapper.c
diff -u php4/ext/zlib/zlib_fopen_wrapper.c:1.31 php4/ext/zlib/zlib_fopen_wrapper.c:1.32
--- php4/ext/zlib/zlib_fopen_wrapper.c:1.31 Sat Oct 5 06:35:13 2002
+++ php4/ext/zlib/zlib_fopen_wrapper.c Mon Oct 14 22:27:15 2002
@@ -16,7 +16,7 @@
| Hartmut Holzgraefe <hartmut@six.de> |
+----------------------------------------------------------------------+
*/
-/* $Id: zlib_fopen_wrapper.c,v 1.31 2002/10/05 10:35:13 wez Exp $ */
+/* $Id: zlib_fopen_wrapper.c,v 1.32 2002/10/15 02:27:15 wez Exp $ */
#define IS_EXT_MODULE
#define _GNU_SOURCE
@@ -111,8 +111,10 @@
self->gz_file = gzdopen(fd, mode);
if (self->gz_file) {
stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode);
- if (stream)
+ if (stream) {
+ stream->flags |= PHP_STREAM_FLAG_NO_BUFFER;
return stream;
+ }
gzclose(self->gz_file);
}
if (options & REPORT_ERRORS)