summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2013-04-23 17:01:17 -0400
committerPierrick Charron <pierrick@php.net>2013-04-23 17:01:17 -0400
commitb79e65f268d8f368a1088313735eda3ca485fa53 (patch)
treea5183bc8c8b9cd12fd93066d276ceff723ebcf62 /ext/curl/interface.c
parent758b666c0ad6edb48274858d2e11c53460787b88 (diff)
downloadphp-git-b79e65f268d8f368a1088313735eda3ca485fa53.tar.gz
Remove curl wrappers
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index a2256ef30d..2d54140317 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -1221,25 +1221,6 @@ PHP_MINIT_FUNCTION(curl)
return FAILURE;
}
-#ifdef PHP_CURL_URL_WRAPPERS
- REGISTER_LONG_CONSTANT("CURL_WRAPPERS_ENABLED", 1, CONST_CS | CONST_PERSISTENT);
- {
- curl_version_info_data *info = curl_version_info(CURLVERSION_NOW);
- char **p = (char **)info->protocols;
-
- while (*p != NULL) {
- /* Do not enable cURL "file" protocol and make sure cURL is always used when --with-curlwrappers is enabled */
- if (strncasecmp(*p, "file", sizeof("file")-1) != 0) {
- php_unregister_url_stream_wrapper(*p TSRMLS_CC);
- php_register_url_stream_wrapper(*p, &php_curl_wrapper TSRMLS_CC);
- }
- (void) *p++;
- }
- }
-#else
- REGISTER_LONG_CONSTANT("CURL_WRAPPERS_ENABLED", 0, CONST_CS | CONST_PERSISTENT);
-#endif
-
curlfile_register_class(TSRMLS_C);
return SUCCESS;
@@ -1250,20 +1231,6 @@ PHP_MINIT_FUNCTION(curl)
*/
PHP_MSHUTDOWN_FUNCTION(curl)
{
-#ifdef PHP_CURL_URL_WRAPPERS
- {
- curl_version_info_data *info = curl_version_info(CURLVERSION_NOW);
- char **p = (char **)info->protocols;
-
- while (*p != NULL) {
- /* Do not enable cURL "file" protocol and make sure cURL is always used when --with-curlwrappers is enabled */
- if (strncasecmp(*p, "file", sizeof("file")-1) != 0) {
- php_unregister_url_stream_wrapper(*p TSRMLS_CC);
- }
- (void) *p++;
- }
- }
-#endif
curl_global_cleanup();
#ifdef PHP_CURL_NEED_OPENSSL_TSL
if (php_curl_openssl_tsl) {