summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-08-11 02:32:49 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-08-11 02:32:49 +0000
commit42355837c1e220a423c66165a0a197f2866259c8 (patch)
treefcaa89adcd8d919a6c75b24b51b1000f4da79319 /ext/zlib
parent02ed7058187c8edf47adccfd0924bbd7400992c4 (diff)
downloadphp-git-42355837c1e220a423c66165a0a197f2866259c8.tar.gz
Changed my mind.
Let users decided whether users want larger chunk size or not. @ Changed zlib.output_compression behavior. If larger chunk is preferred, enable output_buffering also. (Marcus, Yasuo)
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 06b0446db6..dd49facf45 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -1013,8 +1013,6 @@ int php_enable_output_compression(int buffer_size TSRMLS_DC)
return FAILURE;
}
- if (OG(ob_nesting_level)==0)
- php_start_ob_buffer(NULL, buffer_size, 0 TSRMLS_CC);
php_ob_set_internal_handler(php_gzip_output_handler, (uint)(buffer_size*3/2), "zlib output compression", 0 TSRMLS_CC);
if (ZLIBG(output_handler) && strlen(ZLIBG(output_handler))) {
php_start_ob_buffer_named(ZLIBG(output_handler), 0, 1 TSRMLS_CC);