mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Merge branch 'PHP-5.4' into PHP-5.5
Conflicts: ext/curl/interface.c
This commit is contained in:
commit
6ace9c646b
@ -1222,6 +1222,7 @@ PHP_MINIT_FUNCTION(curl)
|
||||
}
|
||||
|
||||
#ifdef PHP_CURL_URL_WRAPPERS
|
||||
REGISTER_LONG_CONSTANT("CURL_WRAPPERS_ENABLE", 1, CONST_CS | CONST_PERSISTENT);
|
||||
{
|
||||
curl_version_info_data *info = curl_version_info(CURLVERSION_NOW);
|
||||
char **p = (char **)info->protocols;
|
||||
@ -1235,6 +1236,8 @@ PHP_MINIT_FUNCTION(curl)
|
||||
(void) *p++;
|
||||
}
|
||||
}
|
||||
#else
|
||||
REGISTER_LONG_CONSTANT("CURL_WRAPPERS_ENABLE", 0, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
|
||||
curlfile_register_class(TSRMLS_C);
|
||||
|
@ -9,10 +9,7 @@ if(!$res) {
|
||||
die("skip could not open cli server script");
|
||||
}
|
||||
|
||||
ob_start();
|
||||
phpinfo();
|
||||
$curlwrappers = preg_match("/with-curlwrappers/", ob_get_clean());
|
||||
if ($curlwrappers) {
|
||||
if (CURL_WRAPPERS_ENABLE) {
|
||||
die("skip curl wrappers used");
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user