[php-src] PR #19774: uri: Remove useless layer of indirection in `php_uri_get_parser()`
| From: | TimWolla | Date: | Tue, 09 Sep 2025 12:36:20 +0000 |
| Subject: | [php-src] PR #19774: uri: Remove useless layer of indirection in `php_uri_get_parser()` | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33161@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19774
Author: TimWolla
By using the
zend_hash_*() functions directly, we can benefit from the precalculated
hash value in the given zend_string *uri_parser_name. We need to deconstify the
parameter, since the function might calculate the hash, thus modifying the
zend_string*.