[php-src] PR #19592: uri: Stop touching the `lxb_url_parser_t.idna` field
| From: | TimWolla | Date: | Mon, 25 Aug 2025 21:45:41 +0000 |
| Subject: | [php-src] PR #19592: uri: Stop touching the `lxb_url_parser_t.idna` field | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32920@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19592
Author: TimWolla
Looking at the Lexbor implementation, the
lxb_url_parser_t.idna field is private and
must not be touched from the outside. Lexbor expects to be able to manage it by itself when
destroying a parser object.
Fix the issue by putting the lxb_unicode_idna_t into a thread-local variable that we
own. This also avoids one level of dynamic allocation. The same is done for the mraw.