]> granicus.if.org Git - php/commitdiff
- Fix output compression
authorJani Taskinen <jani@php.net>
Mon, 3 Aug 2009 18:08:46 +0000 (18:08 +0000)
committerJani Taskinen <jani@php.net>
Mon, 3 Aug 2009 18:08:46 +0000 (18:08 +0000)
ext/zlib/zlib.c

index b23a2532f68f673b745141aa931f34d46abb4e9a..102832dd4792c74af119d6081e51b507b67cedd6 100644 (file)
@@ -70,7 +70,7 @@ int php_zlib_output_encoding(TSRMLS_D)
        if (!ZLIBG(compression_coding)) {
                zend_is_auto_global(ZEND_STRL("_SERVER") TSRMLS_CC);
                
-               if (PG(http_globals)[TRACK_VARS_SERVER] && SUCCESS == zend_ascii_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_ACCEPT_ENCODING", sizeof("HTTP_ACCEPT_ENCODING"), (void *) &enc)) {
+               if (PG(http_globals)[TRACK_VARS_SERVER] && SUCCESS == zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_ACCEPT_ENCODING", sizeof("HTTP_ACCEPT_ENCODING"), (void *) &enc)) {
                        convert_to_string(*enc);
                        if (strstr(Z_STRVAL_PP(enc), "gzip")) {
                                ZLIBG(compression_coding) = PHP_ZLIB_ENCODING_GZIP;