]> granicus.if.org Git - php/commitdiff
Ignore double_buffering for ob_start().
authorMarcus Boerger <helly@php.net>
Wed, 21 Aug 2002 01:00:56 +0000 (01:00 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 21 Aug 2002 01:00:56 +0000 (01:00 +0000)
main/output.c

index 10bc5b82206c21e2adb62608ce03c19fdfc193df..4a0f81954a9c1c0bdefbee668f1ad7721dfa0608 100644 (file)
@@ -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;