|
Lines 1-6
Link Here
|
| 1 |
--- main/SAPI.c.orig Sun Jan 1 13:50:17 2006 |
1 |
--- main/SAPI.c.orig 2007-05-25 11:20:01.000000000 +0200 |
| 2 |
+++ main/SAPI.c Wed May 3 09:38:09 2006 |
2 |
+++ main/SAPI.c 2008-02-01 14:36:51.000000000 +0100 |
| 3 |
@@ -602,7 +602,7 @@ |
3 |
@@ -18,7 +18,7 @@ |
|
|
4 |
+----------------------------------------------------------------------+ |
| 5 |
*/ |
| 6 |
|
| 7 |
-/* $Id: SAPI.c,v 1.202.2.7.2.15 2007/05/25 09:20:01 rasmus Exp $ */ |
| 8 |
+/* $Id: SAPI.c,v 1.202.2.7.2.16 2007/12/03 16:04:26 dmitry Exp $ */ |
| 9 |
|
| 10 |
#include <ctype.h> |
| 11 |
#include <sys/stat.h> |
| 12 |
@@ -301,6 +301,7 @@ |
| 13 |
|
| 14 |
/* SG(sapi_headers).http_response_code = 200; */ |
| 15 |
SG(sapi_headers).http_status_line = NULL; |
| 16 |
+ SG(sapi_headers).mimetype = NULL; |
| 17 |
SG(read_post_bytes) = 0; |
| 18 |
SG(request_info).post_data = NULL; |
| 19 |
SG(request_info).raw_post_data = NULL; |
| 20 |
@@ -340,6 +341,7 @@ |
| 21 |
SG(sapi_headers).http_response_code = 200; |
| 22 |
*/ |
| 23 |
SG(sapi_headers).http_status_line = NULL; |
| 24 |
+ SG(sapi_headers).mimetype = NULL; |
| 25 |
SG(headers_sent) = 0; |
| 26 |
SG(read_post_bytes) = 0; |
| 27 |
SG(request_info).post_data = NULL; |
| 28 |
@@ -604,7 +606,7 @@ |
| 4 |
ptr++; |
29 |
ptr++; |
| 5 |
len--; |
30 |
len--; |
| 6 |
} |
31 |
} |
|
Lines 9-15
Link Here
|
| 9 |
if(!strncmp(ptr, "image/", sizeof("image/")-1)) { |
34 |
if(!strncmp(ptr, "image/", sizeof("image/")-1)) { |
| 10 |
zend_alter_ini_entry("zlib.output_compression", sizeof("zlib.output_compression"), "0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME); |
35 |
zend_alter_ini_entry("zlib.output_compression", sizeof("zlib.output_compression"), "0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME); |
| 11 |
} |
36 |
} |
| 12 |
@@ -756,7 +756,7 @@ |
37 |
@@ -758,7 +760,7 @@ |
| 13 |
return SUCCESS; |
38 |
return SUCCESS; |
| 14 |
} |
39 |
} |