diff options
| author | xXx-caillou-xXx | 2018-08-27 13:56:44 +0200 |
|---|---|---|
| committer | jvoisin | 2018-08-27 11:56:44 +0000 |
| commit | 096e7faa6a5e21e5416a7c8c484e27acd4636a66 (patch) | |
| tree | 3dd11a05c4406280238459be917b8f47d22400f7 /src/tests/stream_wrapper_restore.phpt | |
| parent | 6abdd9abca50c92390b94fbebb3e7065d5d532da (diff) | |
Add whitelist support for php's wrappers
Diffstat (limited to 'src/tests/stream_wrapper_restore.phpt')
| -rw-r--r-- | src/tests/stream_wrapper_restore.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/stream_wrapper_restore.phpt b/src/tests/stream_wrapper_restore.phpt new file mode 100644 index 0000000..c1bce3b --- /dev/null +++ b/src/tests/stream_wrapper_restore.phpt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --TEST-- | ||
| 2 | Stream wrapper | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/config_stream_wrapper_register.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | stream_wrapper_restore("file"); | ||
| 10 | fopen("file://asdasd", "r"); | ||
| 11 | ?> | ||
| 12 | --EXPECTF-- | ||
| 13 | Notice: stream_wrapper_restore(): file:// was never changed, nothing to restore in %a/tests/stream_wrapper_restore.php on line %d | ||
| 14 | |||
| 15 | Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configured PHP? in %a/tests/stream_wrapper_restore.php on line %d | ||
| 16 | |||
| 17 | Warning: fopen(file://asdasd): failed to open stream: No such file or directory in %a/tests/stream_wrapper_restore.php on line %d | ||
