PHP  
 PHP_7_1
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/openssl/tests/bug68265.phpt ('Bug #68265: SAN match fails with trailing DNS dot')

Script

1: <?php
2: $serverCode 
= <<<'CODE'
3:
    $serverUri = "ssl://127.0.0.1:64321";
4:     $serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
5:     $serverCtx = stream_context_create(['ssl' => [
6:         'local_cert' => __DIR__ . '/bug68265.pem',
7:         'passphrase' => 'elephpant',
8:     ]]);
9:
10:     $server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);
11:     phpt_notify();
12:
13:     stream_socket_accept($server, 30);
14:
CODE;
15:
16:
$clientCode = <<<'CODE'
17:
    $serverUri = "ssl://127.0.0.1:64321";
18:     $clientFlags = STREAM_CLIENT_CONNECT;
19:     $clientCtx = stream_context_create(['ssl' => [
20:         'verify_peer' => false,
21:         'verify_peer_name' => true,
22:         'peer_name' => 'debs.ak-online.net',
23:     ]]);
24:
25:     phpt_wait();
26:
27:     var_dump(stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx));
28:
CODE;
29:
30: include 
'ServerClientTestCase.inc';
31:
ServerClientTestCase::getInstance()->run($clientCode$serverCode);
32:

Expected

resource(%d) of type (stream)

Output

Warning: stream_socket_client(): SSL: Handshake timed out in /var/php_gcov/PHP_7_1/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 11

Warning: stream_socket_client(): Failed to enable crypto in /var/php_gcov/PHP_7_1/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 11

Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /var/php_gcov/PHP_7_1/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 11
bool(false)

Diff

001+ Warning: stream_socket_client(): SSL: Handshake timed out in /var/php_gcov/PHP_7_1/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 11
001- resource(%d) of type (stream)
002+ 
003+ Warning: stream_socket_client(): Failed to enable crypto in /var/php_gcov/PHP_7_1/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 11
004+ 
005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /var/php_gcov/PHP_7_1/ext/openssl/tests/ServerClientTestCase.inc(96) : eval()'d code on line 11
006+ bool(false)

 

Generated at Thu, 23 Nov 2017 06:57:06 +0000 (26 hours ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.