mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
- Fixed hardcoded INI
This commit is contained in:
parent
c6b73c85ba
commit
7b3350347a
1 changed files with 1 additions and 1 deletions
|
@ -1327,7 +1327,7 @@ exit_loop:
|
||||||
if (sapi_module == &cli_sapi_module) {
|
if (sapi_module == &cli_sapi_module) {
|
||||||
if (ini_entries) {
|
if (ini_entries) {
|
||||||
ini_entries = realloc(ini_entries, ini_entries_len + sizeof(HARDCODED_INI));
|
ini_entries = realloc(ini_entries, ini_entries_len + sizeof(HARDCODED_INI));
|
||||||
memmove(ini_entries, ini_entries + sizeof(HARDCODED_INI) - 2, ini_entries_len + 1);
|
memmove(ini_entries + sizeof(HARDCODED_INI) - 2, ini_entries, ini_entries_len + 1);
|
||||||
memcpy(ini_entries, HARDCODED_INI, sizeof(HARDCODED_INI) - 2);
|
memcpy(ini_entries, HARDCODED_INI, sizeof(HARDCODED_INI) - 2);
|
||||||
} else {
|
} else {
|
||||||
ini_entries = malloc(sizeof(HARDCODED_INI));
|
ini_entries = malloc(sizeof(HARDCODED_INI));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue