]> TLD Linux GIT Repositories - packages/php.git/blobdiff - php-zlib.patch
- PHP_5_4 branch from PLD
[packages/php.git] / php-zlib.patch
diff --git a/php-zlib.patch b/php-zlib.patch
new file mode 100644 (file)
index 0000000..1ee4b30
--- /dev/null
@@ -0,0 +1,15 @@
+diff -burN php-5.0.0b3/ext/zlib/zlib.c php-5.0.0b3-zlib/ext/zlib/zlib.c
+--- php-5.0.0b3/ext/zlib/zlib.c        2003-09-26 10:09:53.000000000 +0200
++++ php-5.0.0b3-zlib/ext/zlib/zlib.c   2003-12-27 00:40:53.000000000 +0100
+@@ -979,6 +979,11 @@
+       if (ZLIBG(output_handler) && strlen(ZLIBG(output_handler))) {
+               php_start_ob_buffer_named(ZLIBG(output_handler), 0, 1 TSRMLS_CC);
++              if (sapi_add_header("Content-Encoding: gzip", sizeof("Content-Encoding: gzip") - 1        , 1)!=FAILURE) {
++                      if (sapi_add_header("Vary: Accept-Encoding", sizeof("Vary: Accept-Encoding") - 1, 1)==FAILURE) {
++                              SG(sapi_headers).send_default_content_type = 0;
++                      }
++              }
+       }
+       return SUCCESS;
+ }