The following flags are set in a specific phase of the handler's lifecycle:
PHP_OUTPUT_HANDLER_START is set
when a handler is invoked for the first time.
PHP_OUTPUT_HANDLER_FINAL
or its alias PHP_OUTPUT_HANDLER_END
is set when a handler is invoked for the last time,
i.e. it is being turned off. This flag is also set
when buffers are being turned off by PHP's shutdown process.