com php-src: fix atol usage: sapi/apache2handler/sapi_apach e2.c
| From: | Anatol Belski | Date: | Wed, 17 Sep 2014 18:43:23 +0000 |
| Subject: | com php-src: fix atol usage: sapi/apache2handler/sapi_apach e2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81718@lists.php.net to get a copy of this message | ||
Commit: b5406ed3167512f156e74c1bbd422d26ade271fa
Author: Anatol Belski <ab@php.net> Wed, 17 Sep 2014 20:43:23 +0200
Parents: e3b3e6812772f5739641d85a89855c085c32e17f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b5406ed3167512f156e74c1bbd422d26ade271fa
Log:
fix atol usage
Changed paths:
M sapi/apache2handler/sapi_apache2.c
Diff:
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index d39a25a...ad5e4db 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -482,7 +482,7 @@ static int php_apache_request_ctor(request_rec *r, php_struct *ctx TSRMLS_DC)
r->no_local_copy = 1;
content_length = (char *) apr_table_get(r->headers_in, "Content-Length");
- SG(request_info).content_length = (content_length ? atol(content_length) : 0);
+ SG(request_info).content_length = (content_length ? ZEND_ATOL(content_length) : 0);
apr_table_unset(r->headers_out, "Content-Length");
apr_table_unset(r->headers_out, "Last-Modified");