--TEST-- Bug #62890 (default_socket_timeout=-1 causes connection to timeout) --SKIPIF-- --INI-- default_socket_timeout=-1 --FILE-- [ 'local_cert' => '%s', 'security_level' => 1, ]]); $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx); phpt_notify(); @stream_socket_accept($server, 3); CODE; $serverCode = sprintf($serverCode, $certFile); $clientCode = <<<'CODE' $flags = STREAM_CLIENT_CONNECT; $ctx = stream_context_create(['ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'security_level' => 1, ]]); phpt_wait(); $client = stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); var_dump($client); CODE; include 'CertificateGenerator.inc'; $certificateGenerator = new CertificateGenerator(); $certificateGenerator->saveNewCertAsFileWithKey('bug62890', $certFile); include 'ServerClientTestCase.inc'; ServerClientTestCase::getInstance()->run($clientCode, $serverCode); ?> --CLEAN-- --EXPECTF-- resource(%d) of type (stream)