1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix nightly failure due to OnChangeMemoryLimit changes (#20450)

This commit is contained in:
Niels Dossche
2025-11-11 13:40:04 +01:00
committed by GitHub
parent 9b752a3d2b
commit ee9773bdc6

View File

@@ -347,6 +347,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
zend_ini_entry *max_mem_limit_ini = zend_hash_str_find_ptr(EG(ini_directives), ZEND_STRL("max_memory_limit"));
entry->value = zend_string_init(ZSTR_VAL(max_mem_limit_ini->value), ZSTR_LEN(max_mem_limit_ini->value), true);
GC_MAKE_PERSISTENT_LOCAL(entry->value);
PG(memory_limit) = PG(max_memory_limit);
return SUCCESS;