From: Operating system: Debian GNU/Linux PHP version: Irrelevant Package: PHP options/info functions Bug Type: Bug Bug description:output_buffering boolean values not interpreted correctly
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 bug report at http://bugs.php.net/bug.php?id=54051&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54051&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54051&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54051&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54051&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54051&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54051&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54051&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54051&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54051&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54051&r=support Expected behavior: http://bugs.php.net/fix.php?id=54051&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54051&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54051&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54051&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54051&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54051&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54051&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54051&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54051&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54051&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54051&r=mysqlcfg