We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 192847c commit 7e477f4Copy full SHA for 7e477f4
main/main.c
@@ -346,7 +346,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
346
}
347
348
zend_ini_entry *max_mem_limit_ini = zend_hash_str_find_ptr(EG(ini_directives), ZEND_STRL("max_memory_limit"));
349
- entry->value = zend_string_copy(max_mem_limit_ini->value);
+ entry->value = zend_string_init(ZSTR_VAL(max_mem_limit_ini->value), ZSTR_LEN(max_mem_limit_ini->value), true);
350
PG(memory_limit) = PG(max_memory_limit);
351
352
return SUCCESS;
0 commit comments