php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45502 Cannot disable output_buffering on Windows Server 2008
Submitted: 2008-07-13 21:28 UTC Modified: 2008-08-16 01:00 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: aren at cambre dot biz Assigned: fb-req-jani (profile)
Status: No Feedback Package: PHP options/info functions
PHP Version: 5.2.6 OS: Windows Server 2008 x64
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-07-13 21:28 UTC] aren at cambre dot biz
Description:
------------
I cannot disable output_buffering on Windows Server 2008. I have tried the following in the main php.ini:
* output_buffering = Off
* output_buffering = 0
* ;output_buffering = Off

No matter what I do, output_bufferings stays stuck at 4096.

I installed using the installer. I verified with the latest version of Sysinternals Process Monitor that the php.ini I am editing, c:\program files (x86)\php\php.ini is indeed the only php.ini file that is being opened by *any* process when I execute a php file.

While I believe that they are separate issues, http://bugs.php.net/bug.php?id=45501 is somewhat related.

Expected result:
----------------
Output buffering should indicate as disabled or off for at least one of the variants that I put in php.ini per above.

Actual result:
--------------
Here's the top part of phpinfo:

System 	Windows NT W2K8DCTR6401 6.0 build 6001
Build Date 	May 2 2008 18:01:20
Configure Command 	cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"
Server API 	CGI/FastCGI
Virtual Directory Support 	enabled
Configuration File (php.ini) Path 	C:\Windows
Loaded Configuration File 	C:\Program Files (x86)\PHP\php.ini
PHP API 	20041225
PHP Extension 	20060613
Zend Extension 	220060519
Debug Build 	no
Thread Safety 	enabled
Zend Memory Manager 	enabled
IPv6 Support 	enabled
Registered PHP Streams 	php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports 	tcp, udp
Registered Stream Filters 	convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-23 10:20 UTC] jani@php.net
What exactly does phpinfo() say for this ini option? 
 [2008-07-23 13:46 UTC] aren at cambre dot biz
phpinfo indicates output_buffering is 4096 regardless of how I have it set in php.ini.
 [2008-07-23 14:06 UTC] jani@php.net
Using this script: <?php phpinfo(); ?>

What _exactly_ is on the full row in phpinfo() about output_buffering?
If you do not set output_buffering at all in your php.ini it won't be enabled. (default value is 0 for it!)

 [2008-07-23 19:35 UTC] aren at cambre dot biz
It says "output_buffering	4096	4096" regardless of how I have output_buffering set in php.ini.

I tried all of the following:
;output_buffering = Off
output_buffering = Off
output_buffering = On
output_buffering = 1234

This is the php.ini inside C:\Program Files (x86)\PHP.

I have run Process Monitor to confirm that this is the only file named php.ini that is being accessed during PHP execution.

I even reset IIS (iisreset.exe) (yes, while running cmd.exe in administrative mode), and that had no effect. I had left output_buffering = 1234, but phpinfo still shows 4096.
 [2008-07-24 00:43 UTC] jani@php.net
1. Get http://snaps.php.net/win32/php5.2-win32-latest.zip
2. Get rid of ALL (and I mean ALL) existing PHP dlls/exes from your machine. (AFTER stopping your webserver and anything else which might use them)
3. Install the fresh snapshot.
4. Make sure there are NO php*.ini files in your system.
5. Start your webserver.
6. Check phpinfo(). No php.ini file should have been loaded at this stage. And output_buffering should have 0 0 for the values. And PHP version is 5.2.7-dev..

 [2008-08-08 03:23 UTC] aren at cambre dot biz
Before I do this, is http://snaps.php.net/win32/php5.2-win32-latest.zip
 a stable release? Or is this experimental?
 [2008-08-09 00:01 UTC] jani@php.net
It's the development version (== not released) of upcoming PHP 5.2.7.
Anyway, if you can't reproduce this problem on some other machine, it's clearly some isolated problem in your server, in other words: bogus.
 [2008-08-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC