summaryrefslogtreecommitdiff
path: root/src/tests/xxe/disable_xxe_simplexml.phpt
diff options
context:
space:
mode:
authorjvoisin2023-01-04 19:06:28 +0100
committerjvoisin2023-01-04 19:10:38 +0100
commit1bf0f3ec9088d34383c564d6306901ae6dc94cb5 (patch)
treed484c173bacd0e5c5d2847b43f99e99d26074019 /src/tests/xxe/disable_xxe_simplexml.phpt
parent0423e1b63364f4dd741d3a8ac8a880407ff37371 (diff)
Fix the CI for PHP8.2
Diffstat (limited to 'src/tests/xxe/disable_xxe_simplexml.phpt')
-rw-r--r--src/tests/xxe/disable_xxe_simplexml.phpt9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tests/xxe/disable_xxe_simplexml.phpt b/src/tests/xxe/disable_xxe_simplexml.phpt
index 9560156..8a4f033 100644
--- a/src/tests/xxe/disable_xxe_simplexml.phpt
+++ b/src/tests/xxe/disable_xxe_simplexml.phpt
@@ -11,6 +11,9 @@ simplexml
11--FILE-- 11--FILE--
12<?php 12<?php
13$dir = __DIR__; 13$dir = __DIR__;
14@unlink($dir . "/content.xml");
15@unlink($dir . "/content.txt");
16
14$content = 'WARNING, external entity loaded!'; 17$content = 'WARNING, external entity loaded!';
15file_put_contents('content.txt', $content); 18file_put_contents('content.txt', $content);
16 19
@@ -44,9 +47,3 @@ printf("without xxe: %s", $doc->testing);
44libxml_disable_entity to true: 47libxml_disable_entity to true:
45libxml_disable_entity to false: 48libxml_disable_entity to false:
46without xxe: foo 49without xxe: foo
47--CLEAN--
48<?php
49$dir = __DIR__;
50unlink($dir . "/content.xml");
51unlink($dir . "/content.txt");
52?>