]> git.pld-linux.org Git - packages/php4.git/blobdiff - php4-zlib.patch
- rel 8; see cvs log php-openssl-huge-hack.patch for details
[packages/php4.git] / php4-zlib.patch
index 1ee4b3043b2e807d240ea169f4f4fdf1baf3753f..14cdb259586bd3d500011a2157ba5d976ea23e86 100644 (file)
@@ -1,11 +1,19 @@
-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 @@
+--- php/ext/zlib/zlib.c.orig   Wed Jul  2 12:30:43 2003
++++ php/ext/zlib/zlib.c        Wed Jul  2 13:23:07 2003
+@@ -1010,6 +1010,8 @@
+               /* return the original string */
+               *return_value = **zv_string;
+               zval_copy_ctor(return_value);
++      } else {
++              SG(sapi_headers).send_default_content_type = 0;
+       }
+ }
+ /* }}} */
+@@ -1055,6 +1055,11 @@
+       php_ob_set_internal_handler(php_gzip_output_handler, (uint)buffer_size, "zlib output compression", 0 TSRMLS_CC);
        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("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;
 +                      }
This page took 0.026679 seconds and 4 git commands to generate.