]> git.pld-linux.org Git - packages/php.git/blame - php-5.2.17-bug-60206.patch
use /usr/sbin/php-fpm as other branches
[packages/php.git] / php-5.2.17-bug-60206.patch
CommitLineData
82f6b657
ER
1diff -up php-5.2.17/sapi/apache2filter/sapi_apache2.c.bug-60206 php-5.2.17/sapi/apache2filter/sapi_apache2.c
2--- php-5.2.17/sapi/apache2filter/sapi_apache2.c.bug-60206 2012-01-12 09:06:47.000000000 +0700
3+++ php-5.2.17/sapi/apache2filter/sapi_apache2.c 2012-01-12 09:06:59.000000000 +0700
4@@ -404,7 +404,7 @@ static void php_apache_request_ctor(ap_f
5 efree(content_type);
6
7 content_length = (char *) apr_table_get(f->r->headers_in, "Content-Length");
8- SG(request_info).content_length = (content_length ? atoi(content_length) : 0);
9+ SG(request_info).content_length = (content_length ? atol(content_length) : 0);
10
11 apr_table_unset(f->r->headers_out, "Content-Length");
12 apr_table_unset(f->r->headers_out, "Last-Modified");
13diff -up php-5.2.17/sapi/apache2handler/sapi_apache2.c.bug-60206 php-5.2.17/sapi/apache2handler/sapi_apache2.c
14--- php-5.2.17/sapi/apache2handler/sapi_apache2.c.bug-60206 2012-01-12 09:07:37.000000000 +0700
15+++ php-5.2.17/sapi/apache2handler/sapi_apache2.c 2012-01-12 09:07:46.000000000 +0700
16@@ -454,7 +454,7 @@ static int php_apache_request_ctor(reque
17 r->no_local_copy = 1;
18
19 content_length = (char *) apr_table_get(r->headers_in, "Content-Length");
20- SG(request_info).content_length = (content_length ? atoi(content_length) : 0);
21+ SG(request_info).content_length = (content_length ? atol(content_length) : 0);
22
23 apr_table_unset(r->headers_out, "Content-Length");
24 apr_table_unset(r->headers_out, "Last-Modified");
25diff -up php-5.2.17/sapi/apache_hooks/mod_php5.c.bug-60206 php-5.2.17/sapi/apache_hooks/mod_php5.c
26--- php-5.2.17/sapi/apache_hooks/mod_php5.c.bug-60206 2012-01-12 09:08:19.000000000 +0700
27+++ php-5.2.17/sapi/apache_hooks/mod_php5.c 2012-01-12 09:08:26.000000000 +0700
28@@ -571,7 +571,7 @@ static void init_request_info(TSRMLS_D)
29 SG(request_info).request_method = (char *)r->method;
30 SG(request_info).proto_num = r->proto_num;
31 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE");
32- SG(request_info).content_length = (content_length ? atoi(content_length) : 0);
33+ SG(request_info).content_length = (content_length ? atol(content_length) : 0);
34 SG(sapi_headers).http_response_code = r->status;
35
36 if (r->headers_in) {
37diff -up php-5.2.17/sapi/apache/mod_php5.c.bug-60206 php-5.2.17/sapi/apache/mod_php5.c
38--- php-5.2.17/sapi/apache/mod_php5.c.bug-60206 2012-01-12 09:05:59.000000000 +0700
39+++ php-5.2.17/sapi/apache/mod_php5.c 2012-01-12 09:06:19.000000000 +0700
40@@ -513,7 +513,7 @@ static void init_request_info(TSRMLS_D)
41 SG(request_info).request_uri = r->uri;
42 SG(request_info).request_method = (char *)r->method;
43 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE");
44- SG(request_info).content_length = (content_length ? atoi(content_length) : 0);
45+ SG(request_info).content_length = (content_length ? atol(content_length) : 0);
46 SG(sapi_headers).http_response_code = r->status;
47 SG(request_info).proto_num = r->proto_num;
48
This page took 0.035891 seconds and 4 git commands to generate.