diff options
author | Marcus Boerger <helly@php.net> | 2002-08-21 01:00:56 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-08-21 01:00:56 +0000 |
commit | b98c26382fbce4ad781914a8e0530a0d0980b321 (patch) | |
tree | a941594bd021998136d7ba73e67bfa7748f95827 | |
parent | d887ea3c3dc270aa46c32f79d27ad8d82315266b (diff) | |
download | php-git-b98c26382fbce4ad781914a8e0530a0d0980b321.tar.gz |
Ignore double_buffering for ob_start().
-rw-r--r-- | main/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/output.c b/main/output.c index 10bc5b8220..4a0f81954a 100644 --- a/main/output.c +++ b/main/output.c @@ -135,7 +135,7 @@ PHPAPI int php_start_ob_buffer(zval *output_handler, uint chunk_size, zend_bool php_error_docref("ref.outcontrol" TSRMLS_CC, E_ERROR, "Cannot use output buffering in output buffering display handlers"); return FAILURE; } - if (OG(ob_nesting_level)==0 && PG(double_buffering)) { + if (OG(ob_nesting_level)==0 && PG(double_buffering) && chunk_size) { initial_chunk_size = php_ob_default_buffer_size(TSRMLS_C); initial_size = 4*initial_chunk_size; block_size = initial_chunk_size; |