Skip to content

Commit 7e477f4

Browse files
manuelmDanielEScherzer
authored andcommitted
Commit the actual fix for GH-17951
Sorry, my (ilutov's) bad. I reverted the change to verify the test, but forgot to undo before pushing. (cherry picked from commit 9b752a3)
1 parent 192847c commit 7e477f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
346346
}
347347

348348
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);
349+
entry->value = zend_string_init(ZSTR_VAL(max_mem_limit_ini->value), ZSTR_LEN(max_mem_limit_ini->value), true);
350350
PG(memory_limit) = PG(max_memory_limit);
351351

352352
return SUCCESS;

0 commit comments

Comments
 (0)