From 24d3ffe4e4c94399eaab92335b6735784bc78dd0 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Mon, 25 Mar 2002 01:29:56 +0000 Subject: [PATCH] Add ob_start() callback function limitations. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@75123 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/outcontrol.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/functions/outcontrol.xml b/functions/outcontrol.xml index 8d378f1bee..cd2a85e263 100644 --- a/functions/outcontrol.xml +++ b/functions/outcontrol.xml @@ -1,5 +1,5 @@ - + Output Control Functions Output Control @@ -152,6 +152,15 @@ ob_end_flush(); functions are active, output is being filtered sequentially through each of them in nesting order. + + ob_end_clean, + ob_end_flush, ob_clean, + ob_flush and ob_start + may not be called from callback function. If you call them from + callback function, behavior is undefined. If you would like to + delete buffer contents, return "" (null string) from callback + function. + User defined callback function example