diff options
| author | Ben Fuhrmannek | 2020-06-15 11:51:16 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2020-06-15 11:51:16 +0200 |
| commit | 7ac1e3866ef4f146c6c93a5ca13b9aebb14e936a (patch) | |
| tree | ce57745314d905ff06119788acb56c11dcb3aede /src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt | |
| parent | f742d9f88bf788e38bbe832f1b75e39784f024bc (diff) | |
| parent | 7f9602ebc23582195d63eb35f1de1961297f2e00 (diff) | |
Merge remote-tracking branch 'upstream/master'
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 | 4 |
1 files changed, 3 insertions, 1 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 8a50c97..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-- |
| @@ -15,4 +17,4 @@ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, '0'); | |||
| 15 | echo "1337"; | 17 | echo "1337"; |
| 16 | ?> | 18 | ?> |
| 17 | --EXPECTF-- | 19 | --EXPECTF-- |
| 18 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'curl_setopt', because its argument '$option' content (81) matched the rule 'Please don't turn CURLOPT_SSL_VERIFYHOST off.' in %s/disabled_function_ensure_server_valid_certs.php on line %d | 20 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function] Aborted execution on call of the function 'curl_setopt', because its argument '$option' content (81) matched the rule 'Please don't turn CURLOPT_SSL_VERIFYHOST off.' in %s/disabled_function_ensure_server_valid_certs.php on line %d |
