- fix flags mask
authorMichael Wallner <mike@php.net>
Mon, 26 Dec 2005 10:26:39 +0000 (10:26 +0000)
committerMichael Wallner <mike@php.net>
Mon, 26 Dec 2005 10:26:39 +0000 (10:26 +0000)
http_encoding_api.c

index f896be4ca8f57c701e5e7712f211934b0389e776..6f49ee18fa434d0aad9ef12280fcdb9edb1418c8 100644 (file)
@@ -657,7 +657,7 @@ void _http_ob_deflatehandler(char *output, uint output_len, char **handled_outpu
                        break;
                }
                
-               flags |= (G->send.deflate.start_flags &~ 0xf);
+               flags |= (G->send.deflate.start_flags &~ 0xf0);
                G->send.deflate.stream = http_encoding_deflate_stream_init(NULL, flags);
        }
        
@@ -695,7 +695,7 @@ void _http_ob_inflatehandler(char *output, uint output_len, char **handled_outpu
                        zend_error(E_ERROR, "ob_inflatehandler() can only be used once");
                        return;
                }
-               G->send.inflate.stream = http_encoding_inflate_stream_init(NULL, (HTTP_G(send).inflate.start_flags &~ 0xf));
+               G->send.inflate.stream = http_encoding_inflate_stream_init(NULL, (HTTP_G(send).inflate.start_flags &~ 0xf0));
        }
        
        if (G->send.inflate.stream) {