From 5329a55bfd2b00d617a40d587cd37050d964ccbf Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 12 Dec 2020 18:57:48 +0000 Subject: Mark the relevant php8 tests as broken (#359) * Skip tests broken on php8 * Oops * Fix some tests * Add some XXE tests for php8 * Fix a test --- src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt') diff --git a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt index 5a11c8f..73090ff 100644 --- a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt +++ b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt @@ -2,6 +2,7 @@ Stream wrapper, without a dependency on openssl --SKIPIF-- += 80000) print "skip"; ?> --INI-- sp.configuration_file={PWD}/config/config_stream_wrapper.ini --FILE-- -- cgit v1.3 From 6db0b53393015c639afb7e1fd8efcba65fb6234b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 31 Dec 2020 14:56:20 +0100 Subject: Enable 3 more tests PHP8 is changing the capitalization of the error message --- src/tests/stream_wrapper/stream_wrapper.phpt | 7 +++---- src/tests/stream_wrapper/stream_wrapper_register.phpt | 2 +- src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt') diff --git a/src/tests/stream_wrapper/stream_wrapper.phpt b/src/tests/stream_wrapper/stream_wrapper.phpt index 5a1dab7..588a10d 100644 --- a/src/tests/stream_wrapper/stream_wrapper.phpt +++ b/src/tests/stream_wrapper/stream_wrapper.phpt @@ -5,7 +5,6 @@ Stream wrapper if (!extension_loaded("snuffleupagus")) print "skip snuffleupagus extension missing"; if (!extension_loaded("openssl")) print "skip openssl extension missing"; ?> -= 80000) print "skip"; ?> --INI-- sp.configuration_file={PWD}/config/config_stream_wrapper.ini --FILE-- @@ -26,10 +25,10 @@ Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: %s -Warning: file_get_contents(https://qweqwezxc): failed to open stream: php_network_getaddresses: getaddrinfo failed: %s +Warning: file_get_contents(https://qweqwezxc): %s to open stream: php_network_getaddresses: getaddrinfo failed: %s -Warning: file_get_contents(ftp://qweqwezxc): failed to open stream: operation failed in %a/stream_wrapper.php on line %d +Warning: file_get_contents(ftp://qweqwezxc): %s to open stream: operation failed in %a/stream_wrapper.php on line %d Warning: file_get_contents(): Unable to find the wrapper "lelel" - did you forget to enable it when you configured PHP? in %a/stream_wrapper.php on line %d -Warning: file_get_contents(lelel://qweqwezxc): failed to open stream: No such file or directory in %a/stream_wrapper.php on line %d +Warning: file_get_contents(lelel://qweqwezxc): %s to open stream: No such file or directory in %a/stream_wrapper.php on line %d diff --git a/src/tests/stream_wrapper/stream_wrapper_register.phpt b/src/tests/stream_wrapper/stream_wrapper_register.phpt index a3ffb2e..15eb444 100644 --- a/src/tests/stream_wrapper/stream_wrapper_register.phpt +++ b/src/tests/stream_wrapper/stream_wrapper_register.phpt @@ -23,4 +23,4 @@ Warning: fopen(): Unable to find the wrapper "lolol" - did you forget to enable Warning: fopen(): file:// wrapper is disabled in the server configuration in %a/stream_wrapper_register.php on line %d -Warning: fopen(lolol://asdasd): failed to open stream: no suitable wrapper could be found in %a/stream_wrapper_register.php on line %d +Warning: fopen(lolol://asdasd): %s to open stream: no suitable wrapper could be found in %a/stream_wrapper_register.php on line %d diff --git a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt index 73090ff..b4bdc3f 100644 --- a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt +++ b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt @@ -20,10 +20,10 @@ Warning: Unknown: Unable to find the wrapper "php" - did you forget to enable it Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_without_openssl.php on line 2 -Warning: file_get_contents(http://qweqwezxc): failed to open stream: No such file or directory in %a/stream_wrapper_without_openssl.php on line 2 +Warning: file_get_contents(http://qweqwezxc): %s to open stream: No such file or directory in %a/stream_wrapper_without_openssl.php on line 2 -Warning: file_get_contents(ftp://qweqwezxc): failed to open stream: operation failed in %a/stream_wrapper_without_openssl.php on line 3 +Warning: file_get_contents(ftp://qweqwezxc): %s to open stream: operation failed in %a/stream_wrapper_without_openssl.php on line 3 Warning: file_get_contents(): Unable to find the wrapper "lelel" - did you forget to enable it when you configured PHP? in %a/stream_wrapper_without_openssl.php on line 4 -Warning: file_get_contents(lelel://qweqwezxc): failed to open stream: No such file or directory in %a/stream_wrapper_without_openssl.php on line 4 +Warning: file_get_contents(lelel://qweqwezxc): %s to open stream: No such file or directory in %a/stream_wrapper_without_openssl.php on line 4 -- cgit v1.3 From 3934044e873a24ac7a89014c1ad79e585d6a1148 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 31 Dec 2020 14:58:37 +0100 Subject: Actually enable the tests --- src/tests/stream_wrapper/stream_wrapper_register.phpt | 1 - src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt | 1 - 2 files changed, 2 deletions(-) (limited to 'src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt') diff --git a/src/tests/stream_wrapper/stream_wrapper_register.phpt b/src/tests/stream_wrapper/stream_wrapper_register.phpt index 15eb444..27d8afb 100644 --- a/src/tests/stream_wrapper/stream_wrapper_register.phpt +++ b/src/tests/stream_wrapper/stream_wrapper_register.phpt @@ -2,7 +2,6 @@ Stream wrapper --SKIPIF-- -= 80000) print "skip"; ?> --INI-- sp.configuration_file={PWD}/config/config_stream_wrapper_register.ini --FILE-- diff --git a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt index b4bdc3f..54fd067 100644 --- a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt +++ b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt @@ -2,7 +2,6 @@ Stream wrapper, without a dependency on openssl --SKIPIF-- -= 80000) print "skip"; ?> --INI-- sp.configuration_file={PWD}/config/config_stream_wrapper.ini --FILE-- -- cgit v1.3