mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
74f75db0c3
The unexpected EOF failure was introduced in OpenSSL 3.0 to prevent truncation attack. However there are many non complaint servers and it is causing break for many users including potential majority of those where the truncation attack is not applicable. For that reason we try to keep behavior consitent with older OpenSSL versions which is also the path chosen by some other languages and web servers. Closes GH-8369
22 lines
383 B
PHP
22 lines
383 B
PHP
--TEST--
|
|
Bug #65538: TLS unexpected EOF failure
|
|
--EXTENSIONS--
|
|
openssl
|
|
--SKIPIF--
|
|
<?php
|
|
if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$release = file_get_contents(
|
|
'https://chromedriver.storage.googleapis.com/LATEST_RELEASE',
|
|
false,
|
|
stream_context_create(['ssl' => ['verify_peer'=> false]])
|
|
);
|
|
echo gettype($release);
|
|
|
|
?>
|
|
--EXPECT--
|
|
string
|