[php-src] PR #19624: uri: Remove `php_uri_parse()` and `php_uri_free()`

From: Date: Thu, 28 Aug 2025 21:38:03 +0000
Subject: [php-src] PR #19624: uri: Remove `php_uri_parse()` and `php_uri_free()`
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32957@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19624 Author: TimWolla This API is both less powerful as well as less efficient compared to just calling the ->parse_uri() handler of the parser directly. With regard to efficiency it needlessly allocates 32 byte of memory to store two pointers, of which one is already known, because it's the input. While it would be possible to just return the resulting uri_internal_t struct (instead of a pointer to a freshly allocated one), which would be returned as a register pair, users of the API can also just create the struct themselves for even more flexibility in allocations. The API is also less powerful, because it does not support base URIs.

« previous php.git-pulls (#32957) next »