[php-src] PR #24125: ext/dom: Restore the XPath context after a reentrant evaluation

From: Date: Sun, 04 Oct 2026 22:05:26 +0000
Subject: [php-src] PR #24125: ext/dom: Restore the XPath context after a reentrant evaluation
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-39142@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24125 Author: iliaal When a php:function() callback evaluates another expression on the same DOMXPath or Dom\XPath, the inner evaluation used to clear the shared libxml context's node and namespace list on its way out, so the outer evaluation resumed without them: later predicate steps matched nothing or failed with "Undefined namespace prefix". php_xpath_eval() now restores the previous node and namespace list instead of clearing them.

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