Edit report at https://bugs.php.net/bug.php?id=54051&edit=1
ID: 54051 Updated by: [email protected] Reported by: chealer at gmail dot com Summary: output_buffering boolean values not interpreted correctly -Status: Open +Status: Analyzed Type: Bug Package: PHP options/info functions Operating System: Debian GNU/Linux PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Yes, this isn't completely consistent. An empty string is the same as Off. It doesn't display the same as the boolean flags in phpinfo() because it isn't a boolean since it can take numeric values. 0, "" and Off all mean the same thing here. So it is purely aesthetic, but we should still go through and clean this up at some point. Previous Comments: ------------------------------------------------------------------------ [2011-02-18 22:28:08] chealer at gmail dot com Description: ------------ As reported in http://bugs.php.net/bug.php?id=29575 phpinfo() displays the value of output_buffering as "no value" instead of Off when it is set to Off. output_buffering is supposed to support boolean values: ; Output buffering is a mechanism for controlling how much output data ; (excluding headers and cookies) PHP should keep internally before pushing that ; data to the client. If your application's output exceeds this setting, PHP ; will send that data in chunks of roughly the size you specify. ; Turning on this setting and managing its maximum buffer size can yield some ; interesting side-effects depending on your application and web server. ; You may be able to send headers and cookies after you've already sent output ; through print or echo. You also may see performance benefits if your server is ; emitting less packets due to buffered output versus PHP streaming the output ; as it gets it. On production servers, 4096 bytes is a good setting for performance ; reasons. ; Note: Output buffering can also be controlled via Output Buffering Control ; functions. ; Possible Values: ; On = Enabled and buffer is unlimited. (Use with caution) ; Off = Disabled ; Integer = Enables the buffer and sets its maximum size in bytes. ; Note: This directive is hardcoded to Off for the CLI SAPI ; Default Value: Off ; Development Value: 4096 ; Production Value: 4096 ; http://php.net/output-buffering But if it is set to Off, its value becomes an empty string. If it is set to On, its value becomes 1. I set the version to Irrelevant so the system would let me submit the report, but the version I verified this on is PHP 5.3.3. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54051&edit=1
