[php-src] PHP-8.2: Fix persistent local flag in session url updating (#13905)

From: Date: Sun, 07 Apr 2024 13:24:34 +0000
Subject: [php-src] PHP-8.2: Fix persistent local flag in session url updating (#13905)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-127964@lists.php.net to get a copy of this message
Author: Niels Dossche (nielsdos) Committer: GitHub (web-flow) Pusher: nielsdos Date: 2024-04-07T15:24:29+02:00 Commit: https://github.com/php/php-src/commit/4a14211739982a82893c176f59c86aa090856415 Raw diff: https://github.com/php/php-src/commit/4a14211739982a82893c176f59c86aa090856415.diff Fix persistent local flag in session url updating (#13905) Short-lived regression from 5ce9687cb2bc49e5d95b1c9bda5dc7f711c3da62. 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. Changed paths: M ext/standard/url_scanner_ex.re Diff: diff --git a/ext/standard/url_scanner_ex.re b/ext/standard/url_scanner_ex.re index a4a48b6bf60e..77b4d79793b6 100644 --- a/ext/standard/url_scanner_ex.re +++ b/ext/standard/url_scanner_ex.re @@ -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); }

« previous php.cvs (#127964) next »