summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorjvoisin2020-10-03 14:45:50 +0200
committerjvoisin2020-10-03 15:03:04 +0200
commit326c6dbcd66b4911df3ad603ee0ae36b78999189 (patch)
tree232c08c9ee2f34435ae645ade51bffa004c8fd6c /src/tests
parenta59c3622848840f55a22ed91bf782775f43a40a1 (diff)
Fix the testsuite for php7.4
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/stream_wrapper/stream_wrapper_restore.phpt11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tests/stream_wrapper/stream_wrapper_restore.phpt b/src/tests/stream_wrapper/stream_wrapper_restore.phpt
index b4a29c8..e1e9604 100644
--- a/src/tests/stream_wrapper/stream_wrapper_restore.phpt
+++ b/src/tests/stream_wrapper/stream_wrapper_restore.phpt
@@ -2,16 +2,17 @@
2Stream wrapper 2Stream wrapper
3--SKIPIF-- 3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> 4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5<?php if (PHP_VERSION_ID >= 70400) { die("skip BROKEN with 7.4"); } ?>
5--INI-- 6--INI--
6sp.configuration_file={PWD}/config/config_stream_wrapper_register.ini 7sp.configuration_file={PWD}/config/config_stream_wrapper_register.ini
7--FILE-- 8--FILE--
8<?php 9<?php
9stream_wrapper_restore("file"); 10stream_wrapper_restore("stdin");
10fopen("file://asdasd", "r"); 11fopen("stdin://asdasd", "r");
11?> 12?>
12--EXPECTF-- 13--EXPECTF--
13Notice: stream_wrapper_restore(): file:// was never changed, nothing to restore in %a/stream_wrapper_restore.php on line %d 14Notice: stream_wrapper_restore(): stdin:// was never changed, nothing to restore in %a/stream_wrapper_restore.php on line %d
14 15
15Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_restore.php on line %d 16Warning: fopen(): Unable to find the wrapper "stdin" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_restore.php on line %d
16 17
17Warning: fopen(file://asdasd): failed to open stream: No such file or directory in %a/stream_wrapper_restore.php on line %d 18Warning: fopen(stdin://asdasd): failed to open stream: No such file or directory in %a/stream_wrapper_restore.php on line %d