- Notifications
You must be signed in to change notification settings - Fork 8k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Description
Probably caused by php not yet passing XML_PARSE_NO_SYS_CATALOG
and
XML_PARSE_CATALOG_PI
- see https://gitlab.gnome.org/GNOME/libxml2/-/blob/master/NEWS?ref_type=heads
<?php echo LIBXML_VERSION . "\n"; $doc = new DOMDocument(); $doc->loadHTML('<!DOCTYPE html><html><body><?php phpinfo();?></body></html>'); function printNodeClasses(DOMNodeList $nodeList): void { foreach ($nodeList as $childNode) { echo $childNode::class . ': ' . $childNode->nodeName . "\n"; if ($childNode->childNodes instanceof DOMNodeList) printNodeClasses($childNode->childNodes); } } printNodeClasses($doc->documentElement->childNodes);
Will result in this when compiled with libxml2-2.14.0+
21402 DOMElement: body DOMComment: #comment
Instead of:
20904 DOMElement: body DOMProcessingInstruction: php
PHP Version
irrelevant
Operating System
No response