- // test for CURL
- $tests['curl'] = array();
- if (!extension_loaded('curl'))
- {
- $tests['curl']['status'] = 0;
- $tests['curl']['description'] = "The cURL extension is not enabled.\n\nYou will not be able to send and receive messages using 'HTTPS' and 'HTTP 1.1' protocols";
- }
- else
- {
- $info = curl_version();
- $tests['curl']['status'] = 2;
- $tests['curl']['description'] = "The cURL extension is enabled.\n\nYou will be able to send and receive messages using 'HTTPS' and 'HTTP 1.1' protocols";
- if (version_compare($ver, '4.3.8') < 0)
- {
- $tests['curl']['status'] = 1;
- $tests['curl']['description'] .= ".\nPlease note that the current cURL install does not support keep-alives";
- }
- if (!((is_string($info) && strpos($info, 'zlib') !== null) || isset($info['libz_version'])))
- {
- $tests['curl']['status'] = 1;
- $tests['curl']['description'] .= ".\nPlease note that the current cURL install does not support compressed messages";
- }
- if (!((is_string($info) && strpos($info, 'OpenSSL') !== null) || isset($info['ssl_version'])))
- {
- $tests['curl']['status'] = 1;
- $tests['curl']['description'] .= ".\nPlease note that the current cURL install does not support HTTPS connections";
- }
+ // test for zlib
+ $tests['zlib'] = array();
+ if (!function_exists('gzinflate')) {
+ $tests['zlib']['status'] = 0;
+ $tests['zlib']['description'] = "The zlib extension is not enabled.\n\nYou will not be able to send compressed requests or receive compressed responses, unless using the cURL library (for 'HTTPS' and 'HTTP 1.1' connections)";
+ } else {
+ $tests['zlib']['status'] = 2;
+ $tests['zlib']['description'] = "The zlib extension is enabled.\n\nYou will be able to send compressed requests and receive compressed responses for the 'HTTP' protocol";
+ }
+
+ // test for CURL
+ $tests['curl'] = array();
+ if (!extension_loaded('curl')) {
+ $tests['curl']['status'] = 0;
+ $tests['curl']['description'] = "The cURL extension is not enabled.\n\nYou will not be able to send and receive messages using 'HTTPS' and 'HTTP 1.1' protocols";
+ } else {
+ $info = curl_version();
+ $tests['curl']['status'] = 2;
+ $tests['curl']['description'] = "The cURL extension is enabled.\n\nYou will be able to send and receive messages using 'HTTPS' and 'HTTP 1.1' protocols";
+ if (version_compare($ver, '4.3.8') < 0) {
+ $tests['curl']['status'] = 1;
+ $tests['curl']['description'] .= ".\nPlease note that the current cURL install does not support keep-alives";
+ }
+ if (!((is_string($info) && strpos($info, 'zlib') !== null) || isset($info['libz_version']))) {
+ $tests['curl']['status'] = 1;
+ $tests['curl']['description'] .= ".\nPlease note that the current cURL install does not support compressed messages";
+ }
+ if (!((is_string($info) && strpos($info, 'OpenSSL') !== null) || isset($info['ssl_version']))) {
+ $tests['curl']['status'] = 1;
+ $tests['curl']['description'] .= ".\nPlease note that the current cURL install does not support HTTPS connections";
+ }
+ }