Skip to content

Commit 6c7707e

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix persistent local flag in session url updating (#13905)
2 parents eb244fc + 4a14211 commit 6c7707e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/url_scanner_ex.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ static int php_ini_on_update_hosts(zend_ini_entry *entry, zend_string *new_value
140140
if (keylen > 0) {
141141
/* Note: the hash table is persistently allocated, so the strings must be too! */
142142
tmp_key = zend_string_init(key, keylen, true);
143+
GC_MAKE_PERSISTENT_LOCAL(tmp_key);
143144
zend_hash_add_empty_element(hosts, tmp_key);
144145
zend_string_release_ex(tmp_key, true);
145146
}

0 commit comments

Comments
 (0)