mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: minor loop optimizations, closes #2633
This commit is contained in:
commit
8d5a5fbf6b
3 changed files with 14 additions and 7 deletions
|
@ -677,8 +677,12 @@ static int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders)
|
|||
size_t i;
|
||||
|
||||
if (xheaders) {
|
||||
size_t headers_lc_len;
|
||||
|
||||
headers_lc = estrdup(xheaders);
|
||||
for (i = 0; i < strlen(headers_lc); i++) {
|
||||
headers_lc_len = strlen(headers_lc);
|
||||
|
||||
for (i = 0; i < headers_lc_len; i++) {
|
||||
headers_lc[i] = tolower(headers_lc[i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue