X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_curl.c;h=a9950948d1c5ebb66ae8c3e4b9b7568e7ec99b7a;hp=569a4143ea371084e7b18d6f50586c00f769648a;hb=refs%2Fheads%2Fv2.4.x;hpb=6cc24086f57aa1e8f4d6a2c12361635e7c24f60f diff --git a/php_http_curl.c b/php_http_curl.c index 569a414..a995094 100644 --- a/php_http_curl.c +++ b/php_http_curl.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2011, Michael Wallner | + | Copyright (c) 2004-2014, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -25,11 +25,6 @@ # elif defined(PHP_HTTP_HAVE_GNUTLS) # define PHP_HTTP_NEED_GNUTLS_TSL # include -# else -# warning \ - "libcurl was compiled with SSL support, but configure could not determine which" \ - "library was used; thus no SSL crypto locking callbacks will be set, which may " \ - "cause random crashes on SSL requests" # endif /* PHP_HTTP_HAVE_OPENSSL || PHP_HTTP_HAVE_GNUTLS */ # endif /* PHP_WIN32 */ #endif /* ZTS && PHP_HTTP_HAVE_SSL */ @@ -88,6 +83,7 @@ static struct gcry_thread_cbs php_http_gnutls_tsl = { }; #endif + PHP_MINIT_FUNCTION(http_curl) { #ifdef PHP_HTTP_NEED_OPENSSL_TSL