1 diff -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
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);
11 apr_table_unset(f->r->headers_out, "Content-Length");
12 apr_table_unset(f->r->headers_out, "Last-Modified");
13 diff -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
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);
23 apr_table_unset(r->headers_out, "Content-Length");
24 apr_table_unset(r->headers_out, "Last-Modified");
25 diff -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;
37 diff -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;