fix #33973: output with anonymous functions

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@192323 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2005-08-03 16:18:39 +00:00
parent 756f39661b
commit a9264c30dc

View file

@ -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_end_flush();
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 @@ Array
(
[0] => default output handler
)
Array
(
[0] => ob_gzhandler
)
Array
(
[0] => default output handler
)
]]>
</screen>
</example>