From: Christoph M. Becker Date: Mon, 3 Aug 2020 07:12:46 +0000 (+0200) Subject: Enable libxml entity loader test case on Windows X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4b32e82c81073613eae4c363f9953d5fc355023;p=php Enable libxml entity loader test case on Windows --- diff --git a/ext/libxml/tests/libxml_disable_entity_loader.phpt b/ext/libxml/tests/libxml_disable_entity_loader.phpt index 6477543fb2..9717da9bcf 100644 --- a/ext/libxml/tests/libxml_disable_entity_loader.phpt +++ b/ext/libxml/tests/libxml_disable_entity_loader.phpt @@ -1,7 +1,7 @@ --TEST-- libxml_disable_entity_loader() --SKIPIF-- - + --FILE-- &xxe; EOT; -$xml = str_replace('XXE_URI', __DIR__ . '/libxml_disable_entity_loader_payload.txt', $xml); +$dir = str_replace('\\', '/', __DIR__); +$xml = str_replace('XXE_URI', $dir . '/libxml_disable_entity_loader_payload.txt', $xml); function parseXML($xml) { $doc = new DOMDocument();