[php-src] PR #25893: Fix argument numbers and false deprecation in xml_set_element_handler() errors

From: Date: Sun, 29 Nov 2026 10:16:36 +0000
Subject: [php-src] PR #25893: Fix argument numbers and false deprecation in xml_set_element_handler() errors
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41183@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25893 Author: lacatoire xml_set_element_handler() blames argument 2 when the start handler is a valid callable that is not a string and the end handler is invalid, and emits a false "Passing null" deprecation when the start handler is null. The error now blames argument 3 when the start handler is callable, and a null start handler is accepted by the fallback parse. set_element_handler_trampoline_errors.phpt expected the wrong argument number and is updated. ```php xml_set_element_handler(xml_parser_create(), fn($parser, $name, $attrs) => null, []); ``` Before: Argument #2 ($start_handler) must be of type callable|string|null After: Argument #3 ($end_handler) must be of type callable|string|null

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