Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ob_list_handlers(3) [php man page]

OB_LIST_HANDLERS(3)							 1						       OB_LIST_HANDLERS(3)

ob_list_handlers - List all output handlers in use

SYNOPSIS
array ob_list_handlers (void ) DESCRIPTION
Lists all output handlers in use. RETURN VALUES
This will return an array with the output handlers in use (if any). If output_buffering is enabled or an anonymous function was used with ob_start(3), ob_list_handlers(3) will return "default output handler". EXAMPLES
Example #1 ob_list_handlers(3) example <?php //using output_buffering=On print_r(ob_list_handlers()); ob_end_flush(); ob_start("ob_gzhandler"); print_r(ob_list_handlers()); ob_end_flush(); // anonymous functions ob_start(function($string) { return $string; }); print_r(ob_list_handlers()); ob_end_flush(); ?> The above example will output: Array ( [0] => default output handler ) Array ( [0] => ob_gzhandler ) Array ( [0] => Closure::__invoke ) SEE ALSO
ob_end_clean(3), ob_end_flush(3), ob_get_flush(3), ob_start(3). PHP Documentation Group OB_LIST_HANDLERS(3)

Check Out this Related Man Page

OB_GET_STATUS(3)							 1							  OB_GET_STATUS(3)

ob_get_status - Get status of output buffers

SYNOPSIS
array ob_get_status ([bool $full_status = FALSE]) DESCRIPTION
ob_get_status(3) returns status information on either the top level output buffer or all active output buffer levels if $full_status is set to TRUE. PARAMETERS
o $full_status - TRUE to return all active output buffer levels. If FALSE or not set, only the top level output buffer is returned. RETURN VALUES
If called without the $full_status parameter or with $full_status = FALSE a simple array with the following elements is returned: Array ( [level] => 2 [type] => 0 [status] => 0 [name] => URL-Rewriter [del] => 1 ) Simple ob_get_status(3) results Key:level Value:Output nesting level Key:type Value: PHP_OUTPUT_HANDLER_INTERNAL (0) or PHP_OUTPUT_HANDLER_USER (1) Key:status Value:One of PHP_OUTPUT_HANDLER_START (0), PHP_OUTPUT_HANDLER_CONT (1) or PHP_OUTPUT_HANDLER_END (2) Key:name Value:Name of active output handler or ' default output handler' if none is set Key:del Value:Erase-flag as set by ob_start(3) If called with $full_status = TRUE an array with one element for each active output buffer level is returned. The output level is used as key of the top level array and each array element itself is another array holding status information on one active output level. Array ( [0] => Array ( [chunk_size] => 0 [size] => 40960 [block_size] => 10240 [type] => 1 [status] => 0 [name] => default output handler [del] => 1 ) [1] => Array ( [chunk_size] => 0 [size] => 40960 [block_size] => 10240 [type] => 0 [buffer_size] => 0 [status] => 0 [name] => URL-Rewriter [del] => 1 ) ) The full output contains these additional elements: Full ob_get_status(3) results Key:chunk_size Value:Chunk size as set by ob_start(3) Key:size Value:... Key:blocksize Value:... SEE ALSO
ob_get_level(3), ob_list_handlers(3). PHP Documentation Group OB_GET_STATUS(3)
Man Page