Skip to content

Commit 4a14211

Browse files
authored
Fix persistent local flag in session url updating (#13905)
Short-lived regression from 5ce9687. I forgot to add the persistent local flag, so that means that RC_DEBUG will complain. These strings are local to the thread so we can just add the flag to silence the debug checker in this case.
1 parent 8367e9c commit 4a14211

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)