]> granicus.if.org Git - php/commitdiff
"Fix" last commit, to compile cURL with SSL support you must also use the
authorSterling Hughes <sterling@php.net>
Tue, 13 Nov 2001 10:59:15 +0000 (10:59 +0000)
committerSterling Hughes <sterling@php.net>
Tue, 13 Nov 2001 10:59:15 +0000 (10:59 +0000)
OpenSSL extension -- sorry...

The last commit caused bad things to happen if you were compiling cURL and
PHP on Win32 or if you compiled PHP --with-openssl, ie, re-initializing things
that were already initialized

ext/curl/curl.c

index 2b29ba042dad9775b121c21daea60e9ada507b97..cf88a2c7ff8422679b3e6f6879160a9dc5cad843 100644 (file)
@@ -254,7 +254,7 @@ PHP_MINIT_FUNCTION(curl)
        REGISTER_CURL_CONSTANT(CURLE_OBSOLETE);
        REGISTER_CURL_CONSTANT(CURLE_SSL_PEER_CERTIFICATE);
        
-       if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
+       if (curl_global_init(CURL_GLOBAL_NOTHING) != CURLE_OK) {
                return FAILURE;
        }