From 00cbfe551a3399af7d38a294b2f7f5cbb93c0b04 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 12 Aug 2004 18:56:23 +0000 Subject: [PATCH] New parameters, additional parameter to callback function git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166175 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/outcontrol/functions/ob-start.xml | 23 +++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/reference/outcontrol/functions/ob-start.xml b/reference/outcontrol/functions/ob-start.xml index aebec99e14..c43898c50a 100644 --- a/reference/outcontrol/functions/ob-start.xml +++ b/reference/outcontrol/functions/ob-start.xml @@ -1,5 +1,5 @@ - + @@ -10,9 +10,9 @@ Description boolob_start - callback - output_callback - + callbackoutput_callback + intchunk_size + boolerase This function will turn output buffering on. While output @@ -38,6 +38,11 @@ expected to return a new output buffer as a result, which will be sent to the browser. If the output_callback is not a callable function, this function will return &false;. + If the callback function has two parameters, the second parameter is filled + with the bit-field consisting of + PHP_OUTPUT_HANDLER_START, + PHP_OUTPUT_HANDLER_CONT and + PHP_OUTPUT_HANDLER_END. @@ -54,6 +59,16 @@ output_callback can not be executed. + + If an optional parameter chunk_size is passed, the + callback function is called on every first newline after + chunk_size bytes of output. + + + If an optional parameter erase is set to &false; + buffer may not be deleted until script finishes. It is available since + PHP 4.3.0. + Output buffers are stackable, that is, you may call ob_start while another