mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
fix atol usage
This commit is contained in:
parent
e3b3e68127
commit
b5406ed316
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user