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

Test Failure Report for ext/openssl/tests/tlsv1.2_wrapper.phpt ('tlsv1.2 stream wrapper')

Script

1: <?php
2: $serverCode 
= <<<'CODE'
3:
    $flags = STREAM_SERVER_BIND|STREAM_SERVER_LISTEN;
4:     $ctx = stream_context_create(['ssl' => [
5:         'local_cert' => __DIR__ . '/streams_crypto_method.pem',
6:     ]]);
7:
8:     $server = stream_socket_server('tlsv1.2://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
9:     phpt_notify();
10:
11:     for ($i=0; $i < 3; $i++) {
12:         @stream_socket_accept($server, 3);
13:     }
14:
CODE;
15:
16:
$clientCode = <<<'CODE'
17:
    $flags = STREAM_CLIENT_CONNECT;
18:     $ctx = stream_context_create(['ssl' => [
19:         'verify_peer' => false,
20:         'verify_peer_name' => false,
21:     ]]);
22:
23:     phpt_wait();
24:
25:     $client = stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
26:     var_dump($client);
27:     
28:     $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
29:     var_dump($client);
30:     
31:     $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
32:     var_dump($client);
33:
CODE;
34:
35: include 
'ServerClientTestCase.inc';
36:
ServerClientTestCase::getInstance()->run($clientCode$serverCode);
37:

Expected

resource(%d) of type (stream)
bool(false)
bool(false)

Output

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

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

Warning: stream_socket_client(): unable to connect to tlsv1.2://127.0.0.1:64321 (Unknown error) in /var/php_gcov/PHP_HEAD/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 9
bool(false)
bool(false)
bool(false)

Diff

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

 

Generated at Mon, 04 Aug 2014 15:49:20 +0000 (27 days ago)

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