[SoapClient] Renamed proxy_user to proxy_login option to keep compatibility with SoapClient of PHP

This commit is contained in:
Francis Besset
2014-08-18 10:58:40 +02:00
parent 960c9f557a
commit 70db0c42fd
3 changed files with 8 additions and 8 deletions

View File

@ -90,8 +90,8 @@ class Curl
curl_setopt($this->ch, CURLOPT_PROXY, $proxyHost);
if ($proxyHost && isset($options['proxy_user'])) {
curl_setopt($this->ch, CURLOPT_PROXYUSERPWD, $options['proxy_user'].':'.$options['proxy_pass']);
if (false !== $proxyHost && isset($options['proxy_login'])) {
curl_setopt($this->ch, CURLOPT_PROXYUSERPWD, $options['proxy_login'].':'.$options['proxy_password']);
}
}