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:
parent
435f9d5964
commit
f4e7478b44
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user