diff options
Diffstat (limited to 'src/tests/xxe/disable_xxe_simplexml.phpt')
| -rw-r--r-- | src/tests/xxe/disable_xxe_simplexml.phpt | 9 |
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!'; |
| 15 | file_put_contents('content.txt', $content); | 18 | file_put_contents('content.txt', $content); |
| 16 | 19 | ||
| @@ -44,9 +47,3 @@ printf("without xxe: %s", $doc->testing); | |||
| 44 | libxml_disable_entity to true: | 47 | libxml_disable_entity to true: |
| 45 | libxml_disable_entity to false: | 48 | libxml_disable_entity to false: |
| 46 | without xxe: foo | 49 | without xxe: foo |
| 47 | --CLEAN-- | ||
| 48 | <?php | ||
| 49 | $dir = __DIR__; | ||
| 50 | unlink($dir . "/content.xml"); | ||
| 51 | unlink($dir . "/content.txt"); | ||
| 52 | ?> | ||
