|
|
@ -2009,8 +2009,6 @@
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if (version_compare(PHP_VERSION, '7.1.0', '>=')) {
|
|
|
|
if (version_compare(PHP_VERSION, '7.1.0', '>=')) {
|
|
|
|
$context = stream_context_create($context_options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$context_options = array(
|
|
|
|
$context_options = array(
|
|
|
|
'http' => array(
|
|
|
|
'http' => array(
|
|
|
|
'header' => array(
|
|
|
|
'header' => array(
|
|
|
@ -2026,6 +2024,8 @@
|
|
|
|
$context_options['http']['proxy'] = _HTTP_PROXY;
|
|
|
|
$context_options['http']['proxy'] = _HTTP_PROXY;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$context = stream_context_create($context_options);
|
|
|
|
|
|
|
|
|
|
|
|
$headers = get_headers($url, 0, $context);
|
|
|
|
$headers = get_headers($url, 0, $context);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$headers = get_headers($url, 0);
|
|
|
|
$headers = get_headers($url, 0);
|
|
|
|