diff --git a/reference/outcontrol/functions/ob-list-handlers.xml b/reference/outcontrol/functions/ob-list-handlers.xml index 79c0b08134..7187346f96 100755 --- a/reference/outcontrol/functions/ob-list-handlers.xml +++ b/reference/outcontrol/functions/ob-list-handlers.xml @@ -1,5 +1,5 @@ - + ob_list_handlers @@ -17,8 +17,9 @@ This will return an array with the output handlers in use (if any). If output_buffering is - enabled, ob_list_handlers will return "default - output handler". + enabled or an anonymous function was used with + ob_start, ob_list_handlers will + return "default output handler". @@ -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(); ?> ]]> @@ -43,10 +49,16 @@ Array ( [0] => default output handler ) + Array ( [0] => ob_gzhandler ) + +Array +( + [0] => default output handler +) ]]>