You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOM] Dom\XMLDocument::schemaValidate fails to resolve xs:QName with prefix from imported schema (works in DOMDocument) #22219
=== Testing with new Dom\XMLDocument (PHP 8.4+) ===
[Direct custom.xsd] Dom\XMLDocument → ✗ INVALID
Line 9: Element '{http://schemas.xmlsoap.org/wsdl/}part', attribute 'element': The QName value 'ssp:CustomElement' has no corresponding namespace declaration in scope.
Line 9: Element '{http://schemas.xmlsoap.org/wsdl/}part', attribute 'element': 'ssp:CustomElement' is not a valid value of the atomic type 'xs:QName'.
=== Testing with old DOMDocument (for comparison) ===
[Direct custom.xsd] DOMDocument → ✓ VALID
But I expected this output instead:
=== Testing with new Dom\XMLDocument (PHP 8.4+) ===
[Direct custom.xsd] Dom\XMLDocument → ✓ VALID
=== Testing with old DOMDocument (for comparison) ===
[Direct custom.xsd] DOMDocument → ✓ VALID
PHP Version
PHP 8.4.21 (cli) (built: May 5 2026 16:34:12) (NTS gcc x86_64)
Copyright (c) The PHP Group
Built by Remi's RPM repository <https://rpms.remirepo.net/> #StandWithUkraine
Zend Engine v4.4.21, Copyright (c) Zend Technologies
with Zend OPcache v8.4.21, Copyright (c), by Zend Technologies
PHP 8.5.6 (cli) (built: May 5 2026 21:19:36) (NTS gcc x86_64)
Copyright (c) The PHP Group
Built by Remi's RPM repository <https://rpms.remirepo.net/> #StandWithUkraine
Zend Engine v4.5.6, Copyright (c) Zend Technologies
with Zend OPcache v8.5.6, Copyright (c), by Zend Technologies
I'm really happy to see the PR and to know we're not crazy! This kept us busy for quite some time.
Thanks for acting so swiftly @devnexen ! We really appreciate it!
Activity
ioigoume commentedon Jun 4, 2026
+1
Also reproduced in Debian 11
tvdijen commentedon Jun 4, 2026
I'm really happy to see the PR and to know we're not crazy! This kept us busy for quite some time.
Thanks for acting so swiftly @devnexen ! We really appreciate it!
ext/dom: resolve in-scope prefixed QName values during document valid…