Merge branch 'PHP-5.4' into PHP-5.5

Conflicts:
	ext/curl/interface.c
This commit is contained in:
Xinchen Hui 2013-04-03 10:15:41 +08:00
commit 6ace9c646b
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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");
}
?>