We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 003217f commit 52ce87bCopy full SHA for 52ce87b
src/Common/XMLReader.php
@@ -71,10 +71,14 @@ public function getDomFromZip($zipFile, $xmlFile)
71
*/
72
public function getDomFromString($content)
73
{
74
- $originalLibXMLEntityValue = libxml_disable_entity_loader(true);
+ if (\PHP_VERSION_ID < 80000) {
75
+ $originalLibXMLEntityValue = libxml_disable_entity_loader(true);
76
+ }
77
$this->dom = new \DOMDocument();
78
$this->dom->loadXML($content);
- libxml_disable_entity_loader($originalLibXMLEntityValue);
79
80
+ libxml_disable_entity_loader($originalLibXMLEntityValue);
81
82
83
return $this->dom;
84
}
0 commit comments