Skip to content

Commit 4227106

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Commit the actual fix for GH-17951
2 parents 999e16a + 9b752a3 commit 4227106

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
@@ -350,7 +350,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
350350
}
351351

352352
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);
353+
entry->value = zend_string_init(ZSTR_VAL(max_mem_limit_ini->value), ZSTR_LEN(max_mem_limit_ini->value), true);
354354
PG(memory_limit) = PG(max_memory_limit);
355355

356356
return SUCCESS;

0 commit comments

Comments
 (0)