diff options
| author | jvoisin | 2023-01-04 19:06:28 +0100 |
|---|---|---|
| committer | jvoisin | 2023-01-04 19:10:38 +0100 |
| commit | 1bf0f3ec9088d34383c564d6306901ae6dc94cb5 (patch) | |
| tree | d484c173bacd0e5c5d2847b43f99e99d26074019 /src/tests/xxe/disable_xxe_xml_parse.phpt | |
| parent | 0423e1b63364f4dd741d3a8ac8a880407ff37371 (diff) | |
Fix the CI for PHP8.2
Diffstat (limited to 'src/tests/xxe/disable_xxe_xml_parse.phpt')
| -rw-r--r-- | src/tests/xxe/disable_xxe_xml_parse.phpt | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/tests/xxe/disable_xxe_xml_parse.phpt b/src/tests/xxe/disable_xxe_xml_parse.phpt index bc7e338..4a8292d 100644 --- a/src/tests/xxe/disable_xxe_xml_parse.phpt +++ b/src/tests/xxe/disable_xxe_xml_parse.phpt | |||
| @@ -16,6 +16,9 @@ sp.configuration_file={PWD}/config/disable_xxe.ini | |||
| 16 | --FILE-- | 16 | --FILE-- |
| 17 | <?php | 17 | <?php |
| 18 | $dir = __DIR__; | 18 | $dir = __DIR__; |
| 19 | @unlink($dir . "/content.xml"); | ||
| 20 | @unlink($dir . "/content.txt"); | ||
| 21 | |||
| 19 | $content = 'WARNING, external entity loaded!'; | 22 | $content = 'WARNING, external entity loaded!'; |
| 20 | file_put_contents('content.txt', $content); | 23 | file_put_contents('content.txt', $content); |
| 21 | 24 | ||
| @@ -71,7 +74,7 @@ $doc = xml_parse($parser, $xml, true); | |||
| 71 | xml_parser_free($parser); | 74 | xml_parser_free($parser); |
| 72 | 75 | ||
| 73 | --EXPECTF-- | 76 | --EXPECTF-- |
| 74 | Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_disable_entity_loader was tried and nopped in %a.php on line 41 | 77 | Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_disable_entity_loader was tried and nopped in %a.php on line %d |
| 75 | string(4) "TEST" | 78 | string(4) "TEST" |
| 76 | 79 | ||
| 77 | array(0) { | 80 | array(0) { |
| @@ -83,7 +86,7 @@ array(0) { | |||
| 83 | string(7) "TESTING" | 86 | string(7) "TESTING" |
| 84 | string(4) "TEST" | 87 | string(4) "TEST" |
| 85 | 88 | ||
| 86 | Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_disable_entity_loader was tried and nopped in %a.php on line 46 | 89 | Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_disable_entity_loader was tried and nopped in %a.php on line %d |
| 87 | string(4) "TEST" | 90 | string(4) "TEST" |
| 88 | 91 | ||
| 89 | array(0) { | 92 | array(0) { |
| @@ -104,9 +107,3 @@ array(0) { | |||
| 104 | } | 107 | } |
| 105 | textfoostring(7) "TESTING" | 108 | textfoostring(7) "TESTING" |
| 106 | string(4) "TEST" | 109 | string(4) "TEST" |
| 107 | --CLEAN-- | ||
| 108 | <?php | ||
| 109 | $dir = __DIR__; | ||
| 110 | unlink($dir . "/content.xml"); | ||
| 111 | unlink($dir . "/content.txt"); | ||
| 112 | ?> | ||
