[php-src] PR #17888: Fix using Dom\Node with Dom\XPath callbacks
| From: | nielsdos | Date: | Sat, 22 Feb 2025 12:42:13 +0000 |
| Subject: | [php-src] PR #17888: Fix using Dom\Node with Dom\XPath callbacks | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30871@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17888
Author: nielsdos
This code was introduced when the Dom\Node and DOMNode classes were still aliases, so the type check
was never updated. We fix this by checking if the doc pointer follows the spec and pick the right
node CE based on that.