Return value from ZEND_ATOL

Instead of assigning it as part of the macro itself, which makes
usage quite awkward.
This commit is contained in:
Nikita Popov 2021-07-12 16:51:24 +02:00
parent e081db0410
commit efbb2198d4
10 changed files with 22 additions and 44 deletions

View file

@ -519,7 +519,7 @@ static int php_apache_request_ctor(request_rec *r, php_struct *ctx)
content_length = (char *) apr_table_get(r->headers_in, "Content-Length");
if (content_length) {
ZEND_ATOL(SG(request_info).content_length, content_length);
SG(request_info).content_length = ZEND_ATOL(content_length);
} else {
SG(request_info).content_length = 0;
}