summaryrefslogtreecommitdiff
path: root/src/tests/xxe/disable_xxe_dom_php8.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/xxe/disable_xxe_dom_php8.phpt')
-rw-r--r--src/tests/xxe/disable_xxe_dom_php8.phpt13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/tests/xxe/disable_xxe_dom_php8.phpt b/src/tests/xxe/disable_xxe_dom_php8.phpt
index 485828f..133f87e 100644
--- a/src/tests/xxe/disable_xxe_dom_php8.phpt
+++ b/src/tests/xxe/disable_xxe_dom_php8.phpt
@@ -10,6 +10,11 @@ dom
10--FILE-- 10--FILE--
11<?php 11<?php
12$dir = __DIR__; 12$dir = __DIR__;
13
14// Just in case
15@unlink($dir . "/content.xml");
16@unlink($dir . "/content.txt");
17
13$content = '<content>WARNING, external entity loaded!</content>'; 18$content = '<content>WARNING, external entity loaded!</content>';
14file_put_contents($dir . '/content.txt', $content); 19file_put_contents($dir . '/content.txt', $content);
15 20
@@ -48,12 +53,6 @@ printf("disabled entity loader without LIBXML_NOENT: %s\n", $dom->getElementsByT
48default setting with LIBXML_NOENT: WARNING, external entity loaded! 53default setting with LIBXML_NOENT: WARNING, external entity loaded!
49default setting without LIBXML_NOENT: 54default setting without LIBXML_NOENT:
50 55
51Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_set_external_entity_loader was tried and nopped in %a.php on line 26 56Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_set_external_entity_loader was tried and nopped in %a.php on line %d
52disabled entity loader with LIBXML_NOENT: WARNING, external entity loaded! 57disabled entity loader with LIBXML_NOENT: WARNING, external entity loaded!
53disabled entity loader without LIBXML_NOENT: 58disabled entity loader without LIBXML_NOENT:
54--CLEAN--
55<?php
56$dir = __DIR__;
57unlink($dir . "/content.xml");
58unlink($dir . "/content.txt");
59?>