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

Merge branch 'PHP-8.3'

* PHP-8.3:
  Fix persistent local flag in session url updating (#13905)
This commit is contained in:
Niels Dossche
2024-04-07 15:25:15 +02:00

View File

@@ -140,6 +140,7 @@ static int php_ini_on_update_hosts(zend_ini_entry *entry, zend_string *new_value
if (keylen > 0) {
/* Note: the hash table is persistently allocated, so the strings must be too! */
tmp_key = zend_string_init(key, keylen, true);
GC_MAKE_PERSISTENT_LOCAL(tmp_key);
zend_hash_add_empty_element(hosts, tmp_key);
zend_string_release_ex(tmp_key, true);
}