mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
While unencrypted connections ignore negative timeouts, SSL/TLS connections did not special case that, and so always failed due to timeout.
16 lines
363 B
PHP
16 lines
363 B
PHP
--TEST--
|
|
Bug #62890 (default_socket_timeout=-1 causes connection to timeout)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('openssl')) die('skip openssl extension not available');
|
|
if (getenv('SKIP_ONLINE_TESTS')) die('skip online test');
|
|
?>
|
|
--INI--
|
|
default_socket_timeout=-1
|
|
--FILE--
|
|
<?php
|
|
var_dump((bool) file_get_contents('https://php.net'));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|