From: Xinchen Hui Date: Wed, 3 Apr 2013 02:15:41 +0000 (+0800) Subject: Merge branch 'PHP-5.4' into PHP-5.5 X-Git-Tag: php-5.5.0beta3~8^2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ace9c646b56707723f44c9fa6a46a907e1292f3;p=php Merge branch 'PHP-5.4' into PHP-5.5 Conflicts: ext/curl/interface.c --- 6ace9c646b56707723f44c9fa6a46a907e1292f3 diff --cc ext/curl/interface.c index 0c29e4613e,ee205a707b..ae490b1c27 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@@ -1222,6 -914,8 +1222,7 @@@ PHP_MINIT_FUNCTION(curl } #ifdef PHP_CURL_URL_WRAPPERS + REGISTER_LONG_CONSTANT("CURL_WRAPPERS_ENABLE", 1, CONST_CS | CONST_PERSISTENT); -# if HAVE_CURL_VERSION_INFO { curl_version_info_data *info = curl_version_info(CURLVERSION_NOW); char **p = (char **)info->protocols; @@@ -1235,10 -929,22 +1236,12 @@@ (void) *p++; } } -# else - php_unregister_url_stream_wrapper("http"); - php_register_url_stream_wrapper("http", &php_curl_wrapper TSRMLS_CC); - php_unregister_url_stream_wrapper("https"); - php_register_url_stream_wrapper("https", &php_curl_wrapper TSRMLS_CC); - php_unregister_url_stream_wrapper("ftp"); - php_register_url_stream_wrapper("ftp", &php_curl_wrapper TSRMLS_CC); - php_unregister_url_stream_wrapper("ftps"); - php_register_url_stream_wrapper("ftps", &php_curl_wrapper TSRMLS_CC); - php_unregister_url_stream_wrapper("ldap"); - php_register_url_stream_wrapper("ldap", &php_curl_wrapper TSRMLS_CC); -# endif + #else + REGISTER_LONG_CONSTANT("CURL_WRAPPERS_ENABLE", 0, CONST_CS | CONST_PERSISTENT); #endif + curlfile_register_class(TSRMLS_C); + return SUCCESS; } /* }}} */