| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
- | Copyright (c) 2004-2011, Michael Wallner <mike@php.net> |
+ | Copyright (c) 2004-2013, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
};
#endif
+
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()) {
return FAILURE;
}
- if (SUCCESS != php_http_client_factory_add_driver(ZEND_STRL("curl"), &driver)) {
- return FAILURE;
- }
-
return SUCCESS;
}