#39120 [Opn->Csd]: ob_start chunk_size 0 and 1 are special?

From: Date: Fri, 17 Aug 2007 15:56:30 +0000
Subject: #39120 [Opn->Csd]: ob_start chunk_size 0 and 1 are special?
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377616@lists.php.net to get a copy of this message
ID: 39120 Updated by: vrana@php.net Reported By: ceo at l-i-e dot com -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. "Default value 0 means that the function is called only in the end, other special value 1 sets chunk_size to 4096." Previous Comments: ------------------------------------------------------------------------ [2006-10-10 20:33:37] ceo at l-i-e dot com Description: ------------ User-contributed notes and my own limited experience indicates that 0 and 1 are "special" to the chunk_size in ob_start() and make the callback not behave as documented. Can this be documented? Or was it a bug that got fixed? Reproduce code: --------------- <?php //abuses ob_start callback in CLI to 'tee' output //to both buffer and stderr function tee($string){ error_log($string); return false; } ob_start('tee', 0); //fails ob_start('tee', 1); //fails ob_start('tee', 2); //works! ?> Expected result: ---------------- 0, 1, and 2 should behave the same, or be documented as special. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39120&edit=1

« previous php.doc (#969377616) next »