We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e75fbb commit 8f8fc8fCopy full SHA for 8f8fc8f
tests/general/IoTest.php
@@ -213,8 +213,11 @@ public function authCache($io, $client)
213
214
public function responseChecker($io)
215
{
216
- $curlVer = curl_version();
217
- $hasQuirk = $curlVer['version_number'] < Google_IO_Curl::NO_QUIRK_VERSION;
+ $hasQuirk = false;
+ if (function_exists('curl_version')) {
218
+ $curlVer = curl_version();
219
+ $hasQuirk = $curlVer['version_number'] < Google_IO_Curl::NO_QUIRK_VERSION;
220
+ }
221
222
$rawHeaders = "HTTP/1.1 200 OK\r\n"
223
. "Expires: Sun, 22 Jan 2012 09:00:56 GMT\r\n"
0 commit comments