Commit c03d1aad686 for php

commit c03d1aad686b2997233a5d7e5e361bb8c0c72881
Merge: 49a29e1456c 523127fd54c
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date:   Mon Oct 5 07:06:12 2026 -0400

    Merge branch 'PHP-8.4' into PHP-8.5

    * PHP-8.4:
      ext/dom: Restore the XPath context after a reentrant evaluation

diff --cc NEWS
index cfe55f79247,9ccefd5fddb..6d537ffe99b
--- a/NEWS
+++ b/NEWS
@@@ -40,8 -44,13 +40,11 @@@ PH
    . Fixed Dom\HTMLDocument giving attributes the namespace of their element
      when a fragment is parsed with an xlink, xml or xmlns context element.
      (Ilia Alshanetsky)
 -  . Fixed bug GH-23729 (DOMXPath::__construct() use-after-free during an
 -    evaluation). (David Carlier)
 -  . Fixed bug GH-23897 (php:function() assertion failure after a failed
 -    registerPHPFunctions()). (David Carlier)
 +  . Fixed bug GH-23887 (Dom\HTMLCollection::namedItem() assertion failure,
 +    hang, or missed first element). (Lazizbek Ergashev)
+   . Fixed DOMXPath and Dom\XPath losing the context node and in-scope
+     namespaces of an evaluation after a php:function() callback evaluated
+     another expression on the same object. (Ilia Alshanetsky)

  - FFI:
    . Fixed crashes with FFI callbacks created from __call() trampolines