1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-13 03:45:22 +01:00

[Http] Referencing the CURLOPT_TIMEOUT_MS constant only if it is defined

This commit is contained in:
Michael Dowling 2011-03-27 20:14:37 -05:00
parent 435f9d5964
commit f4e7478b44

View File

@ -367,9 +367,9 @@ class CurlHandle
CURLOPT_HTTPAUTH
);
// CURLOPT_TIMEOUT_MS was added in v7.16.2
// CURLOPT_TIMEOUT_MS was added in v7.16.2 (or 0x071602)
if (Guzzle::getCurlInfo('version_number') > 464386) {
self::$pollute[] = \CURLOPT_TIMEOUT_MS;
self::$pollute[] = constant('CURLOPT_TIMEOUT_MS');
}
}
//@codeCoverageIgnoreEnd