From: Robin Fernandes Date: Wed, 18 Feb 2009 16:42:56 +0000 (+0000) Subject: Revert fix to bug #46903 as per http://marc.info/?l=php-internals&m=123476465621346... X-Git-Tag: php-5.4.0alpha1~191^2~4241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6262bb4c3dea4088f25e9ef6db6d699b5b31be70;p=php Revert fix to bug #46903 as per http://marc.info/?l=php-internals&m=123476465621346&w=2 . --- diff --git a/main/output.c b/main/output.c index ab516d5df8..f825cc8cc6 100644 --- a/main/output.c +++ b/main/output.c @@ -1342,8 +1342,6 @@ PHP_FUNCTION(ob_start) } if (chunk_size < 0) { chunk_size = 0; - } else if (chunk_size == 1) { - chunk_size = 4096; } if (SUCCESS != php_output_start_user(output_handler, chunk_size, flags TSRMLS_CC)) { diff --git a/tests/output/bug46903.phpt b/tests/output/bug46903.phpt index c0933d2b06..ec677eadc5 100644 --- a/tests/output/bug46903.phpt +++ b/tests/output/bug46903.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #46903 (ob_start(): Special $chunk_size value of 1 is not honoured in HEAD) +Bug #46903: ob_start(): In HEAD, $chunk_size value of 1 should not have any special behaviour (Updated as per: http://marc.info/?l=php-internals&m=123476465621346&w=2) --FILE-- --EXPECTF-- -[1] int(4096) -12 \ No newline at end of file +[1] int(1) + +[2] 1 +[3] 2 +[4] \ No newline at end of file diff --git a/tests/output/ob_start_basic_004.phpt b/tests/output/ob_start_basic_004.phpt index 39d3aadc49..16f09e8a9a 100644 --- a/tests/output/ob_start_basic_004.phpt +++ b/tests/output/ob_start_basic_004.phpt @@ -1,12 +1,12 @@ --TEST-- -ob_start() chunk_size: confirm buffer is flushed after any output call that causes its length to equal or exceed chunk_size. +ob_start() chunk_size: confirm buffer is flushed after any output call that causes its length to equal or exceed chunk_size. --FILE--