diff options
author | Marcus Boerger <helly@php.net> | 2002-08-10 16:12:36 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-08-10 16:12:36 +0000 |
commit | 21903dfc7e9763afc53e641e7f1a5eb34334929d (patch) | |
tree | 82544cdcb611ea1b9be974a7217523765d0b6b9b /ext/zlib/zlib.c | |
parent | ff63bf2a4f698c424cf9b8cd6aa900f35a13a2e8 (diff) | |
download | php-git-21903dfc7e9763afc53e641e7f1a5eb34334929d.tar.gz |
corrected handling of internal output buffers
minor fixs
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r-- | ext/zlib/zlib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index a4653d62fd..d5501fd921 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -1013,9 +1013,7 @@ 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*1.5f), "zlib output compression", 0 TSRMLS_CC); + php_ob_set_internal_handler(php_gzip_output_handler, 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); } |