mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
e081db0410
commit
efbb2198d4
10 changed files with 22 additions and 44 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue