Add ob_start() callback function limitations.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@75123 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Yasuo Ohgaki 2002-03-25 01:29:56 +00:00
parent 8927719364
commit 24d3ffe4e4

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.26 $ -->
<!-- $Revision: 1.27 $ -->
<reference id="ref.outcontrol">
<title>Output Control Functions</title>
<titleabbrev>Output Control</titleabbrev>
@ -152,6 +152,15 @@ ob_end_flush();
functions are active, output is being filtered sequentially
through each of them in nesting order.
</para>
<para>
<function>ob_end_clean</function>,
<function>ob_end_flush</function>, <function>ob_clean</function>,
<function>ob_flush</function> and <function>ob_start</function>
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.
</para>
<example>
<title>User defined callback function example</title>
<programlisting role="php">