1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 20:53:00 +02:00

ext/standard/head.c: Remove some useless casts

The field type is size_t
This commit is contained in:
Gina Peter Bnayard
2024-08-12 18:17:57 +02:00
parent 91aca96a8e
commit 2297e50772

View File

@@ -44,7 +44,7 @@ PHP_FUNCTION(header)
ZEND_PARSE_PARAMETERS_END();
ctr.line = line;
ctr.line_len = (uint32_t)len;
ctr.line_len = len;
sapi_header_op(rep ? SAPI_HEADER_REPLACE:SAPI_HEADER_ADD, &ctr);
}
/* }}} */
@@ -62,7 +62,7 @@ PHP_FUNCTION(header_remove)
ZEND_PARSE_PARAMETERS_END();
ctr.line = line;
ctr.line_len = (uint32_t)len;
ctr.line_len = len;
sapi_header_op(line == NULL ? SAPI_HEADER_DELETE_ALL : SAPI_HEADER_DELETE, &ctr);
}
/* }}} */