Doc #62019 [Com]: ob_get_status returns 'flags' bitmask instead of 'status' array key

From: Date: Tue, 21 Sep 2021 12:32:31 +0000
Subject: Doc #62019 [Com]: ob_get_status returns 'flags' bitmask instead of 'status' array key
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19200@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62019&edit=1 ID: 62019 Comment by: uknewstoday08 at gmail dot com Reported by: zegenie at gmail dot com Summary: ob_get_status returns 'flags' bitmask instead of 'status' array key Status: Open Type: Documentation Problem Package: Output Control Operating System: Any PHP Version: 5.4.3 Block user comment: N Private report: N New Comment: https://worldnewspedia.com/ https://worldnewspedia.com/deals/ https://worldnewspedia.com/news/ https://worldnewspedia.com/news/sports/ Previous Comments: ------------------------------------------------------------------------ [2021-09-21 12:31:56] uknewstoday07 at gmail dot com https://worldnewspal.com/ https://worldnewspal.com/best-deals/ https://worldnewspal.com/news/ https://worldnewspal.com/news/entertainment/ ------------------------------------------------------------------------ [2020-08-10 03:09:08] webmasteralexo at gmail dot com The documentation for ob_get_status() seems to be incomplete and out of date. The array no longer has "status," "del" or "size" keys. The array has "flags" and "buffer_size" keys. The "type" key in the manual refers to constants PHP_OUTPUT_HANDLER_INTERNAL and PHP_OUTPUT_HANDLER_USER which don't exist and it is not explained what they represent. The "flags" key uses the constants PHP_OUTPUT_HANDLER_CLEANABLE, PHP_OUTPUT_HANDLER_FLUSHABLE and PHP_OUTPUT_HANDLER_REMOVABLE as flag, but there are some other flags which don't have constants or I was unable to identify which ones they use. Flag 0x1 seems to indicate that a user-defined function was given to ob_start(). Flags 0x1000 and 0x4000 are active if ob_flush() or ob_clean() were called. The PHP_OUTPUT_HANDLER_START, PHP_OUTPUT_HANDLER_WRITE and PHP_OUTPUT_HANDLER_FINAL flags don't seem to be represented in the data returned by ob_get_status(). ------------------------------------------------------------------------ [2014-11-19 12:14:49] mike@php.net Related To: Bug #64977 ------------------------------------------------------------------------ [2013-10-03 16:13:25] ca at lapage dot com Related Doc Bug #65826 for ob_list_handlers() ------------------------------------------------------------------------ [2013-10-03 16:12:34] ca2 at lapage dot com Related To: Bug #65826 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62019 -- Edit this bug report at https://bugs.php.net/bug.php?id=62019&edit=1

« previous php.doc.bugs (#19200) next »