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:22:06 -05:00
parent f4e7478b44
commit d081e30d59

View File

@ -361,14 +361,13 @@ class CurlHandle
CURLOPT_LOW_SPEED_LIMIT,
CURLOPT_LOW_SPEED_TIME,
CURLOPT_TIMEOUT,
CURLOPT_TIMEOUT_MS,
CURLOPT_FORBID_REUSE,
CURLOPT_RESUME_FROM,
CURLOPT_HTTPAUTH
);
// CURLOPT_TIMEOUT_MS was added in v7.16.2 (or 0x071602)
if (Guzzle::getCurlInfo('version_number') > 464386) {
if (defined('CURLOPT_TIMEOUT_MS')) {
self::$pollute[] = constant('CURLOPT_TIMEOUT_MS');
}
}