From 6385181b76f41e4441ba9b7fcf4c886cc435c7ff Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 27 May 2003 18:56:20 +0000 Subject: [PATCH] Update and Synch. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@128939 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../outcontrol/functions/ob-end-clean.xml | 16 +++++-- .../outcontrol/functions/ob-end-flush.xml | 46 +++++++++++++++---- 2 files changed, 48 insertions(+), 14 deletions(-) diff --git a/reference/outcontrol/functions/ob-end-clean.xml b/reference/outcontrol/functions/ob-end-clean.xml index e0ecea67e8..0a19868cea 100644 --- a/reference/outcontrol/functions/ob-end-clean.xml +++ b/reference/outcontrol/functions/ob-end-clean.xml @@ -1,5 +1,5 @@ - + @@ -16,8 +16,13 @@ This function discards the contents of the topmost output buffer and - turns off this output buffering. It returns true when it successfully - discarded one buffer and false otherwide. Reasons for failure are first + turns off this output buffering. If you want to further + process the buffer's contents you have to call + ob_get_contents before + ob_end_clean as the buffer contents are + discarded when ob_end_flush is called. + The function returns &true; when it successfully + discarded one buffer and &false; otherwide. Reasons for failure are first that you called the function without an active buffer or that for some reason a buffer could not be deleted (possible for special buffer). @@ -44,8 +49,9 @@ while (@ob_end_clean()); See also ob_start, - ob_clean and - ob_end_flush. + ob_get_contents, + ob_flush and + ob_end_clean. diff --git a/reference/outcontrol/functions/ob-end-flush.xml b/reference/outcontrol/functions/ob-end-flush.xml index 757ae0dec8..efd6d32c9f 100644 --- a/reference/outcontrol/functions/ob-end-flush.xml +++ b/reference/outcontrol/functions/ob-end-flush.xml @@ -1,32 +1,60 @@ - + ob_end_flush - Flush (send) the output buffer and turn off output buffering + Flush (send) the output buffer and turn off output buffering Description - voidob_end_flush + bool ob_end_flush - This function will send the contents of the output buffer (if - any) and turn output buffering off. If you want to further + This function will send the contents of the topmost output buffer (if + any) and turn this output buffer off. If you want to further process the buffer's contents you have to call ob_get_contents before ob_end_flush as the buffer contents are discarded after ob_end_flush is called. + The function returns &true; when it successfully + discarded one buffer and &false; otherwide. Reasons for failure are first + that you called the function without an active buffer or that for some + reason a buffer could not be deleted (possible for special buffer). - See also ob_start, - ob_get_contents, - ob_flush and - ob_end_clean. + The following example shows an easy way to flush and end all output + buffers: + + <function>ob_end_flush</function> example + + +]]> + + + + + + + If the function fails it generates an E_NOTICE. + + + The boolean return value was added in PHP 4.2.0. + + + See also ob_start, + ob_get_contents, + ob_flush and + ob_end_clean. + +