diff --git a/reference/outcontrol/constants.xml b/reference/outcontrol/constants.xml
index 05aeeec8ddbc..5a49dd75393f 100644
--- a/reference/outcontrol/constants.xml
+++ b/reference/outcontrol/constants.xml
@@ -4,6 +4,10 @@
&reftitle.constants;
&extension.constants.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
@@ -90,6 +94,12 @@
+
+
+ Output buffer control flags
+
+ The following flags can be passed to the third (flags) parameter of the output handler set by ob_start as a bitmask:
+
PHP_OUTPUT_HANDLER_CLEANABLE
@@ -98,7 +108,10 @@
Controls whether an output buffer created by
- ob_start can be cleaned.
+ ob_start can be cleaned
+ by ob_clean.
+ This flag does not control the behaviour of
+ ob_end_clean or ob_get_clean.
@@ -110,7 +123,10 @@
Controls whether an output buffer created by
- ob_start can be flushed.
+ ob_start can be flushed
+ by ob_flush.
+ This flag does not control the behaviour of
+ ob_end_flush or ob_get_flush.
@@ -122,7 +138,9 @@
Controls whether an output buffer created by
- ob_start can be removed before the end of the script.
+ ob_start can be removed before the end of the script
+ or when calling ob_end_clean, ob_end_flush,
+ ob_get_clean or ob_get_flush.
@@ -141,6 +159,49 @@
+
+ Output handler status flags
+
+ The following flags are part of the flags bitmask
+ returned by ob_get_status:
+
+
+
+ PHP_OUTPUT_HANDLER_STARTED
+ (int)
+
+
+
+ Indicates that the output handler was called.
+
+
+
+
+
+ PHP_OUTPUT_HANDLER_DISABLED
+ (int)
+
+
+
+ Indicates that the output handler is disabled.
+ This flag is set when the output handler returns &false;
+ or fails while processing the buffer,
+ or it was set prior to calling the output handler.
+
+
+
+
+
+ PHP_OUTPUT_HANDLER_PROCESSED
+ (int)
+
+
+
+ Indicates that the output handler successfully processed the buffer.
+
+
+
+