diff options
author | tailor <cygnus@janrain.com> | 2007-04-02 22:28:59 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-04-02 22:28:59 +0000 |
commit | ecbbb96cb663bd80a73a4c84484bf1335c31e73b (patch) | |
tree | f6df27a1f19ef5bdc28da161e9af3d0079bab645 /Auth | |
parent | 8d4af1add86ed970d463f74d48aad4b7986165e6 (diff) | |
download | php-openid-ecbbb96cb663bd80a73a4c84484bf1335c31e73b.zip php-openid-ecbbb96cb663bd80a73a4c84484bf1335c31e73b.tar.gz php-openid-ecbbb96cb663bd80a73a4c84484bf1335c31e73b.tar.bz2 |
[project @ Add CURL override for testing]
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/Yadis/Yadis.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Auth/Yadis/Yadis.php b/Auth/Yadis/Yadis.php index b6dad09..064b5e2 100644 --- a/Auth/Yadis/Yadis.php +++ b/Auth/Yadis/Yadis.php @@ -200,10 +200,14 @@ class Auth_Yadis_Yadis { * present, an instance of {@link Auth_Yadis_ParanoidHTTPFetcher} * is returned. If not, an instance of * {@link Auth_Yadis_PlainHTTPFetcher} is returned. + * + * If Auth_Yadis_CURL_OVERRIDE is defined, this method will always + * return a {@link Auth_Yadis_PlainHTTPFetcher}. */ function getHTTPFetcher($timeout = 20) { - if (Auth_Yadis_Yadis::curlPresent()) { + if (Auth_Yadis_Yadis::curlPresent() && + (!defined('Auth_Yadis_CURL_OVERRIDE'))) { $fetcher = new Auth_Yadis_ParanoidHTTPFetcher($timeout); } else { $fetcher = new Auth_Yadis_PlainHTTPFetcher($timeout); |