Skip to content

ext/dom: Restore XPath context after reentry - #395

Open
iliaal wants to merge 1 commit into
PHP-8.4from
fix/aph-dom-xpath-reentrant-0bc-84-work
Open

iliaal wants to merge 1 commit into
PHP-8.4from
fix/aph-dom-xpath-reentrant-0bc-84-work

Conversation

@iliaal

@iliaal iliaal commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Save and restore shared XPath node and namespace state around nested callbacks and evaluations.

Restore the libxml XPath context node and namespace list after each
evaluation so callbacks may safely reenter the same DOMXPath object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant