X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_curl.c;h=6b2bd33dfbe4163ffe9dc9d83c2e72b579022c21;hp=866f2d869f15c7b677361f67709c8218be9ed73b;hb=ee95d238f4ffa07e8c5f146848cd1e73ac2447d1;hpb=a18e662d5ff2c4e7051e028f8002dbba720cccd6 diff --git a/php_http_curl.c b/php_http_curl.c index 866f2d8..6b2bd33 100644 --- a/php_http_curl.c +++ b/php_http_curl.c @@ -88,14 +88,9 @@ static struct gcry_thread_cbs php_http_gnutls_tsl = { }; #endif + PHP_MINIT_FUNCTION(http_curl) { - php_http_client_factory_driver_t driver = { - php_http_client_curl_get_ops(), - php_http_client_pool_curl_get_ops(), - php_http_client_datashare_curl_get_ops() - }; - #ifdef PHP_HTTP_NEED_OPENSSL_TSL /* mod_ssl, libpq or ext/curl might already have set thread lock callbacks */ if (!CRYPTO_get_id_callback()) { @@ -119,10 +114,6 @@ PHP_MINIT_FUNCTION(http_curl) return FAILURE; } - if (SUCCESS != php_http_client_factory_add_driver(ZEND_STRL("curl"), &driver)) { - return FAILURE; - } - return SUCCESS; }