diff options
| author | blotus | 2017-09-26 10:34:24 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-26 10:34:24 +0200 |
| commit | 5bb28dfa613df0d642afaa70086ab1201fbb8cd5 (patch) | |
| tree | f1d4c535d7838773c1c98d65a596ce0441b6c479 /src/tests/disable_xxe_xml_parse.phpt | |
| parent | 37b67c1a96c84deb279376f1eb5c2e164dfae7a1 (diff) | |
| parent | 07c148b3790429c9da5a9500bfab9cbaa6d8ecf5 (diff) | |
Merge pull request #8 from nbs-system/fix_local_xxe
Fix XXE test when running without XML support
Diffstat (limited to 'src/tests/disable_xxe_xml_parse.phpt')
| -rw-r--r-- | src/tests/disable_xxe_xml_parse.phpt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tests/disable_xxe_xml_parse.phpt b/src/tests/disable_xxe_xml_parse.phpt index 2bbf0be..ca77729 100644 --- a/src/tests/disable_xxe_xml_parse.phpt +++ b/src/tests/disable_xxe_xml_parse.phpt | |||
| @@ -1,9 +1,12 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Disable XXE | 2 | Disable XXE in xml_parse |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php | 4 | <?php |
| 5 | if (!extension_loaded("snuffleupagus")) die "skip"; | 5 | if (!extension_loaded("snuffleupagus")) { |
| 6 | if (!extension_loaded("xml")) die "skip"; | 6 | echo "skip because snuffleupagus isn't loaded"; |
| 7 | } elseif (!extension_loaded("xml")) { | ||
| 8 | echo "skip because the `xml` extension isn't loaded"; | ||
| 9 | } | ||
| 7 | ?> | 10 | ?> |
| 8 | --INI-- | 11 | --INI-- |
| 9 | sp.configuration_file={PWD}/config/disable_xxe.ini | 12 | sp.configuration_file={PWD}/config/disable_xxe.ini |
