mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-5.6'
* PHP-5.6: Fix #66606: Sets HTTP_CONTENT_TYPE but not CONTENT_TYPE added tests for bug #66606
This commit is contained in:
commit
fc69549593
3 changed files with 66 additions and 0 deletions
|
@ -604,6 +604,9 @@ static int sapi_cli_server_register_entry_cb(char **entry, int num_args, va_list
|
|||
}
|
||||
}
|
||||
spprintf(&real_key, 0, "%s_%s", "HTTP", key);
|
||||
if (strcmp(key, "CONTENT_TYPE") == 0 || strcmp(key, "CONTENT_LENGTH") == 0) {
|
||||
sapi_cli_server_register_variable(track_vars_array, key, *entry);
|
||||
}
|
||||
sapi_cli_server_register_variable(track_vars_array, real_key, *entry);
|
||||
efree(key);
|
||||
efree(real_key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue