Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit cb979e2

Browse files
committed
Fixes zendframework#600 - Undefined property $config in Zend_Http_Client_Adapter_Curl
1 parent 3054bfd commit cb979e2

File tree

1 file changed

+2
-2
lines changed
  • library/Zend/Http/Client/Adapter

1 file changed

+2
-2
lines changed

library/Zend/Http/Client/Adapter/Curl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function connect($host, $port = 80, $secure = false)
222222
}
223223

224224
// Set connection timeout
225-
$connectTimeout = $this->config['timeout'];
225+
$connectTimeout = $this->_config['timeout'];
226226
$constant = CURLOPT_CONNECTTIMEOUT;
227227
if (defined('CURLOPT_CONNECTTIMEOUT_MS')) {
228228
$connectTimeout *= 1000;
@@ -232,7 +232,7 @@ public function connect($host, $port = 80, $secure = false)
232232

233233
// Set request timeout (once connection is established)
234234
if (array_key_exists('request_timeout', $this->_config)) {
235-
$requestTimeout = $this->config['request_timeout'];
235+
$requestTimeout = $this->_config['request_timeout'];
236236
$constant = CURLOPT_TIMEOUT;
237237
if (defined('CURLOPT_TIMEOUT_MS')) {
238238
$requestTimeout *= 1000;

0 commit comments

Comments
 (0)