diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-08-03 09:12:46 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-08-03 09:13:30 +0200 |
commit | d4b32e82c81073613eae4c363f9953d5fc355023 (patch) | |
tree | 77e22c08d9887916de2b5c0bb5f64c9d8f7cddae /ext/libxml | |
parent | fce8061ede48b2ecedb9763b22d3f3be73e862f3 (diff) | |
download | php-git-d4b32e82c81073613eae4c363f9953d5fc355023.tar.gz |
Enable libxml entity loader test case on Windows
Diffstat (limited to 'ext/libxml')
-rw-r--r-- | ext/libxml/tests/libxml_disable_entity_loader.phpt | 5 |
1 files changed, 3 insertions, 2 deletions
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-- -<?php if (!extension_loaded('libxml') || !extension_loaded('dom') || defined('PHP_WINDOWS_VERSION_MAJOR')) die('skip'); ?> +<?php if (!extension_loaded('libxml') || !extension_loaded('dom')) die('skip'); ?> --FILE-- <?php @@ -11,7 +11,8 @@ $xml = <<<EOT <foo>&xxe;</foo> 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(); |