Edit report at https://bugs.php.net/bug.php?id=61434&edit=1
ID: 61434 User updated by: info at ongod dot org Reported by: info at ongod dot org Summary: zlib.output_compression not normal work in IIS7.5 Status: Not a bug Type: Bug Package: Zlib related Operating System: windows2008R2x64 PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: Because php5.4 compression not normal work. So I have to enable IIS7.5 system compression. ok. now please check the www.ongod.org/test/phpinfo.php site. just now I have close IIS compression. PHP5.4 sure can't work with zlib.output_compression. Previous Comments: ------------------------------------------------------------------------ [2012-03-20 13:36:01] a...@php.net btw just downloaded php-5.4.0-nts-Win32-VC9-x86 and tried it: GET /i.php HTTP/1.1 Host: localhost Connection: keep-alive Cache-Control: max-age=0 User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip,deflate,sdch Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 HTTP/1.1 200 OK Content-Type: text/html Content-Encoding: gzip Vary: Accept-Encoding Server: Microsoft-IIS/7.5 X-Powered-By: PHP/5.4.0 Date: Tue, 20 Mar 2012 13:26:04 GMT Content-Length: 9826 The output compression seems to be ok there as well. ------------------------------------------------------------------------ [2012-03-20 12:56:24] a...@php.net As you can see, my tests was indeed with IIS7.5 as well, but PHP 5.4 from the trunk. The things happening on your server look like a configuration issue. What you could do * try another IIS instance, may be on your localhost * try 5.4 trunk as well * check that IIS doesn't drop any headers * ask for help in the mailing lists ------------------------------------------------------------------------ [2012-03-19 17:07:18] info at ongod dot org it is Should be clean code for check. php5.4 not normal work. but php5.3.10 normal work in the same server. who tell me why this ? http://www.ongod.org/test/phpinfo.php Web page compressed? No Compression type? none Size, Markup (bytes) 83,611 Size, Compressed (bytes) 0 Compression % 0.0 php5.3.10 http://mail.ipv6china.com/phpinfo.php Web page compressed? Yes Compression type? gzip Size, Markup (bytes) 87,124 Size, Compressed (bytes) 13,730 Compression % 84.2 check from http://www.gidnetwork.com/tools/gzip-test.php ------------------------------------------------------------------------ [2012-03-19 14:14:54] paj...@php.net ok, not a bug but a support issue. @info at ongod dot org Please ask further support on the PHP general mailing list or any other support channel, thanks! ------------------------------------------------------------------------ [2012-03-19 14:10:56] a...@php.net I cannot reproduce the issue, tried with the latest php 5.4 and IIS7. IIS7 has compression turned off and the php.ini has both zlib.output_compression=on and zlib.output_compression_level=-1 set. The page is merely a phpinfo() page. Here the simple ping pong: GET /i.php HTTP/1.1 Host: localhost Connection: keep-alive Cache-Control: max-age=0 User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip,deflate,sdch Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 HTTP/1.1 200 OK Content-Type: text/html Content-Encoding: gzip Vary: Accept-Encoding Server: Microsoft-IIS/7.5 X-Powered-By: PHP/5.4.1RC1-dev Date: Mon, 19 Mar 2012 14:00:09 GMT Content-Length: 6182 The output compression seems to work. @info at ongod dot org Could you please try such a simple page scenario and post the request/response headers? ------------------------------------------------------------------------ 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=61434 -- Edit this bug report at https://bugs.php.net/bug.php?id=61434&edit=1