mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Make IANA happier than apple
This commit is contained in:
parent
a8dcfce99e
commit
b746e50233
@ -9,7 +9,7 @@ assert(function_exists('curl_close'));
|
|||||||
$curl_version = curl_version();
|
$curl_version = curl_version();
|
||||||
if (stripos($curl_version['ssl_version'], 'schannel') !== false) {
|
if (stripos($curl_version['ssl_version'], 'schannel') !== false) {
|
||||||
$curl = curl_init();
|
$curl = curl_init();
|
||||||
curl_setopt($curl, CURLOPT_URL, 'https://www.example.com/');
|
curl_setopt($curl, CURLOPT_URL, 'https://captive.apple.com/');
|
||||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||||
curl_setopt($curl, CURLOPT_HEADER, 0);
|
curl_setopt($curl, CURLOPT_HEADER, 0);
|
||||||
$data = curl_exec($curl);
|
$data = curl_exec($curl);
|
||||||
|
|||||||
@ -5,5 +5,5 @@ declare(strict_types=1);
|
|||||||
assert(function_exists('openssl_digest'));
|
assert(function_exists('openssl_digest'));
|
||||||
assert(openssl_digest('123456', 'md5') === 'e10adc3949ba59abbe56e057f20f883e');
|
assert(openssl_digest('123456', 'md5') === 'e10adc3949ba59abbe56e057f20f883e');
|
||||||
if (file_exists('/etc/ssl/openssl.cnf')) {
|
if (file_exists('/etc/ssl/openssl.cnf')) {
|
||||||
assert(file_get_contents('https://www.example.com/') !== false);
|
assert(file_get_contents('https://captive.apple.com/') !== false);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user