projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
remove unsued _to_struct
[m6w6/ext-http]
/
php_http_curl.c
diff --git
a/php_http_curl.c
b/php_http_curl.c
index 569a4143ea371084e7b18d6f50586c00f769648a..e9153b1bda9dabbb0e9c05861da589a334803048 100644
(file)
--- a/
php_http_curl.c
+++ b/
php_http_curl.c
@@
-88,8
+88,15
@@
static struct gcry_thread_cbs php_http_gnutls_tsl = {
};
#endif
};
#endif
+
PHP_MINIT_FUNCTION(http_curl)
{
PHP_MINIT_FUNCTION(http_curl)
{
+ php_http_client_factory_driver_t driver = {
+ php_http_curl_client_get_ops(),
+ php_http_curl_client_pool_get_ops(),
+ php_http_curl_client_datashare_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()) {
#ifdef PHP_HTTP_NEED_OPENSSL_TSL
/* mod_ssl, libpq or ext/curl might already have set thread lock callbacks */
if (!CRYPTO_get_id_callback()) {
@@
-113,6
+120,10
@@
PHP_MINIT_FUNCTION(http_curl)
return FAILURE;
}
return FAILURE;
}
+ if (SUCCESS != php_http_client_factory_add_driver(ZEND_STRL("curl"), &driver)) {
+ return FAILURE;
+ }
+
return SUCCESS;
}
return SUCCESS;
}