xref: /PHP-8.1/ext/openssl/tests/bug79589.phpt (revision ce572213)
1--TEST--
2Bug #65538: TLS unexpected EOF failure
3--EXTENSIONS--
4openssl
5--SKIPIF--
6<?php
7if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
8if (!defined("OPENSSL_KEYTYPE_EC")) die("skip EC disabled");
9?>
10--FILE--
11<?php
12
13$release = file_get_contents(
14    'https://chromedriver.storage.googleapis.com/LATEST_RELEASE',
15    false,
16    stream_context_create(['ssl' => ['verify_peer'=> false]])
17);
18echo gettype($release);
19
20?>
21--EXPECT--
22string
23