diff options
Diffstat (limited to 'src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt b/src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt index 513b650..dc53593 100644 --- a/src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt +++ b/src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt | |||
| @@ -5,6 +5,8 @@ Disable functions - Ensure that client 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_VERIFYPEER, '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 (64) matched the rule 'Please don't turn CURLOPT_SSL_VERIFYPEER off.' in %s/disabled_function_ensure_client_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 (64) matched the rule 'Please don't turn CURLOPT_SSL_VERIFYPEER off.' in %s/disabled_function_ensure_client_valid_certs.php on line %d |
