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.
2 parents 999e16a + 9b752a3 commit 4227106Copy full SHA for 4227106
main/main.c
@@ -350,7 +350,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
350
}
351
352
zend_ini_entry *max_mem_limit_ini = zend_hash_str_find_ptr(EG(ini_directives), ZEND_STRL("max_memory_limit"));
353
- 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);
354
PG(memory_limit) = PG(max_memory_limit);
355
356
return SUCCESS;
0 commit comments