ob_get_status
(PHP 4 >= 4.2.0, PHP 5)
ob_get_status — Get status of output buffers
Описание
ob_get_status() returns status information on either the top level output buffer or all active output buffer levels if full_status is set to TRUE.
Список параметров
- full_status
-
TRUE to return all active output buffer levels. If FALSE or not set, only the top level output buffer is returned.
Возвращаемые значения
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 )
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:
Коментарии
The fields inside the array returned by ob_get_status() are:
Array
(
[name] => default output handler
[type] => 0
[flags] => 112
[level] => 1
[chunk_size] => 0
[buffer_size] => 16384
[buffer_used] => 0
)
These values are filled just after the function ob_start()