[php-src] PR #19805: uri: Do not pass `uri_internal_t` to property handlers

From: Date: Thu, 11 Sep 2025 18:31:55 +0000
Subject: [php-src] PR #19805: uri: Do not pass `uri_internal_t` to property handlers
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33194@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19805 Author: TimWolla Within an individual property handler, the parser is already implicitly known, which just leaves the ->uri field which must contain the entire state necessary for the handlers to work with. Pass the ->uri directly. It avoids one pointer indirection, since the handlers do not need to follow the pointer to the uri_internal_t just to follow the pointer to the URI state. Instead the URI pointer can directly be passed using a register with the dereferences (if necessary) happening in the caller, providing more insight for the compiler to work with. It also makes it more convenient to use the handlers directly for code that already knows that it needs a specific URI parser, since no uri_internal_t needs to be constructed to store the already-known information about which parser to use.

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