Skip to content

Commit d766a73

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Fix nightly failure due to OnChangeMemoryLimit changes (#20450)
2 parents 08ba240 + ee9773b commit d766a73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
351351

352352
zend_ini_entry *max_mem_limit_ini = zend_hash_str_find_ptr(EG(ini_directives), ZEND_STRL("max_memory_limit"));
353353
entry->value = zend_string_init(ZSTR_VAL(max_mem_limit_ini->value), ZSTR_LEN(max_mem_limit_ini->value), true);
354+
GC_MAKE_PERSISTENT_LOCAL(entry->value);
354355
PG(memory_limit) = PG(max_memory_limit);
355356

356357
return SUCCESS;

0 commit comments

Comments
 (0)