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