diff options
| author | jvoisin | 2020-05-01 19:50:56 +0200 |
|---|---|---|
| committer | jvoisin | 2020-05-01 20:39:05 +0200 |
| commit | 3e2b6545b623f0ba1b016c03b43d999cfcbc8d2f (patch) | |
| tree | 9f213016094a6b03f4871599f1350a21f7a896d1 /src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt | |
| parent | 4a5a1922f105bf0d4ee002088a6e6ece67ae0b9e (diff) | |
Make the testsuite work on php7.4
Before php7.4, it seems that the curl module was loaded by default, but since
it's no the case anymore, it has to be manually specified in the testsuite.
Interestingly, Php's testsuite mechanism is running snippets to determine some
runtime parameters like the extension directory. Unfortunately,it tries to run
them with Snuffleupagus loaded, resulting in an error, since no configuration
file is passed.
Diffstat (limited to 'src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt b/src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt index 40b58cc..fa583b0 100644 --- a/src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt +++ b/src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt | |||
| @@ -5,6 +5,8 @@ Disable functions - Ensure that server certificates validation can't be disabled | |||
| 5 | if (!extension_loaded("snuffleupagus")) { die("skip"); } | 5 | if (!extension_loaded("snuffleupagus")) { die("skip"); } |
| 6 | if (!extension_loaded("curl")) { die("skip"); } | 6 | if (!extension_loaded("curl")) { die("skip"); } |
| 7 | ?> | 7 | ?> |
| 8 | --EXTENSIONS-- | ||
| 9 | curl | ||
| 8 | --INI-- | 10 | --INI-- |
| 9 | sp.configuration_file={PWD}/config/disabled_function_curl_verify_certs.ini | 11 | sp.configuration_file={PWD}/config/disabled_function_curl_verify_certs.ini |
| 10 | --FILE-- | 12 | --FILE-- |
