ID: 29853 Comment by: tpiper at pinnacle dot co dot uk Reported By: webmaster at neteject dot com Status: Open Bug Type: Performance problem Operating System: Windows 2003 PHP Version: 5.0.0 New Comment:
We're also getting it with PHP 4.3.10 running on IIS6 on W2K3 Server. Output Buffing on in php.ini fixes it for us too. Previous Comments: ------------------------------------------------------------------------ [2005-01-14 18:12:07] m2pc at hotmail dot com I migrated a large-scale PHP application from Win2K Advanced Server to Windows 2003 Standard Edition and noticed huge delays and page timeouts. I tried switching PHP to CGI instead of ISAPI module and got HTTP header errors. Then I tried setting "Output Buffering = On" in my php.ini file, switched back to ISAPI mode, restarted IIS and now it runs lightning fast! It seems to be an issue with IIS6 on the new Windows Server OS, as the same exact application runs fine on earlier versions of IIS with output buffering off. ------------------------------------------------------------------------ [2004-10-13 18:28:42] matt at cloverbasin dot com Windows 2003 Standard, IIS6.0, PHP 4.3.2, PHP4ISAPI.dll PHP page rendering is excrutiatingly slow, static HTML pages still render quickly. CGI/PHP.exe does not seem to exhibit this behavior. The "Output Buffering = On" workaround seemed to be succesful. ------------------------------------------------------------------------ [2004-09-02 19:30:29] php at sharpdreams dot com I also experienced this, and yes it is an IIS issue. AFAIK, output buffering is the only solution. You can do your own output buffering in the page if certain blocks need to be pushed to the client (ie, in long calculations). ------------------------------------------------------------------------ [2004-08-26 17:50:00] webmaster at neteject dot com Description: ------------ PHP 5.0.1 ISAPI Windows 2003 Enterprise Server. I have tested this on different machines with W2003 Server Enterprise installed. I have webppages with a lot of phpchunks with sql and different calculations. When have outbuffering to off the page is printed very slow and halts in almost every chunk. Setting the output to On prints the page fast. I have tested this on my local network. I have connected to 1 xp machine and 2 w2003 machines. XP did not have any problems with output buffering off. One interesting thing is that the page runs quite fast on the local computer which makes me wonder if it has any conjunction with how IIS 6 works. Anyway, the fact still remains that running with output buffering on produces a fast page from anywhere. Reproduce code: --------------- <? Try any mysql_query here. ?> <HTML> <BODY> <? Try any mysql_query here. ?> <TABLE> <? Try any mysql_query here. ?> etc... Expected result: ---------------- Page loading in chunks ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29853&edit=1