nlopess Wed Aug 3 12:18:40 2005 EDT
Modified files:
/phpdoc/en/reference/outcontrol/functions ob-list-handlers.xml
Log:
fix #33973: output with anonymous functions
http://cvs.php.net/diff.php/phpdoc/en/reference/outcontrol/functions/ob-list-handlers.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/outcontrol/functions/ob-list-handlers.xml
diff -u phpdoc/en/reference/outcontrol/functions/ob-list-handlers.xml:1.5
phpdoc/en/reference/outcontrol/functions/ob-list-handlers.xml:1.6
--- phpdoc/en/reference/outcontrol/functions/ob-list-handlers.xml:1.5 Fri Mar
11 11:11:51 2005
+++ phpdoc/en/reference/outcontrol/functions/ob-list-handlers.xml Wed Aug
3 12:18:39 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry id="function.ob-list-handlers">
<refnamediv>
<refname>ob_list_handlers</refname>
@@ -17,8 +17,9 @@
This will return an array with the output handlers in use (if any). If
<link
linkend="ini.output-buffering">output_buffering</link> is
- enabled, <function>ob_list_handlers</function> will return "default
- output handler".
+ enabled or an anonymous function was used with
+ <function>ob_start</function>, <function>ob_list_handlers</function> will
+ return "default output handler".
</para>
<para>
<example>
@@ -33,6 +34,11 @@
ob_start("ob_gzhandler");
print_r(ob_list_handlers());
ob_end_flush();
+
+// anonymous functions
+ob_start(create_function('$string', 'return $string;'));
+print_r(ob_list_handlers());
+ob_end_flush();
?>
]]>
</programlisting>
@@ -43,10 +49,16 @@
(
[0] => default output handler
)
+
Array
(
[0] => ob_gzhandler
)
+
+Array
+(
+ [0] => default output handler
+)
]]>
</screen>
</example>