diff options
author | Anatol Belski <ab@php.net> | 2014-09-17 20:43:23 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-17 20:43:23 +0200 |
commit | b5406ed3167512f156e74c1bbd422d26ade271fa (patch) | |
tree | 8b55867a398fc4019fea6b4fbb6306c07fa0f2a5 /sapi | |
parent | e3b3e6812772f5739641d85a89855c085c32e17f (diff) | |
download | php-git-b5406ed3167512f156e74c1bbd422d26ade271fa.tar.gz |
fix atol usage
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/apache2handler/sapi_apache2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index d39a25a74e..ad5e4db1cf 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"); |