The constants below are always available as part of the PHP core.
Status flags passed to output handler
The following flags are passed to the second (phase
) parameter of the output handler set by ob_start as part of a bitmask:
-
PHP_OUTPUT_HANDLER_START
(int)
-
Indicates that output buffering has begun.
-
PHP_OUTPUT_HANDLER_WRITE
(int)
-
Indicates that the output buffer is being flushed, and had data to output.
-
PHP_OUTPUT_HANDLER_FLUSH
(int)
-
Indicates that the buffer has been flushed.
-
PHP_OUTPUT_HANDLER_CLEAN
(int)
-
Indicates that the output buffer has been cleaned.
-
PHP_OUTPUT_HANDLER_FINAL
(int)
-
Indicates that this is the final output buffering operation.
-
PHP_OUTPUT_HANDLER_CONT
(int)
-
Indicates that the buffer has been flushed, but output buffering will
continue.
This is an alias for
PHP_OUTPUT_HANDLER_WRITE
.
-
PHP_OUTPUT_HANDLER_END
(int)
-
Indicates that output buffering has ended.
This is an alias for
PHP_OUTPUT_HANDLER_FINAL
.