diff options
| author | Pierrick Charron <pierrick@php.net> | 2013-04-23 17:01:17 -0400 |
|---|---|---|
| committer | Pierrick Charron <pierrick@php.net> | 2013-04-23 17:01:17 -0400 |
| commit | b79e65f268d8f368a1088313735eda3ca485fa53 (patch) | |
| tree | a5183bc8c8b9cd12fd93066d276ceff723ebcf62 /ext/curl/interface.c | |
| parent | 758b666c0ad6edb48274858d2e11c53460787b88 (diff) | |
| download | php-git-b79e65f268d8f368a1088313735eda3ca485fa53.tar.gz | |
Remove curl wrappers
Diffstat (limited to 'ext/curl/interface.c')
| -rw-r--r-- | ext/curl/interface.c | 33 |
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) { |
