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

Test Failure Report for ext/openssl/tests/bug46127.phpt ('#46127, openssl_sign/verify: accept different algos')

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__ . '/bug46127.pem',
7:     ]]);
8:
9:     $sock = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);
10:     phpt_notify();
11:
12:     $link = stream_socket_accept($sock);
13:     fwrite($link, "Sending bug 46127\n");
14:
CODE;
15:
16:
$clientCode = <<<'CODE'
17:
    $serverUri = "ssl://127.0.0.1:64321";
18:     $clientFlags = STREAM_CLIENT_CONNECT;
19:
20:     $clientCtx = stream_context_create(['ssl' => [
21:         'verify_peer' => false,
22:         'verify_peer_name' => false
23:     ]]);
24:
25:     phpt_wait();
26:     $sock = stream_socket_client($serverUri, $errno, $errstr, 2, $clientFlags, $clientCtx);
27:
28:     echo fgets($sock);
29:
CODE;
30:
31: include 
'ServerClientTestCase.inc';
32:
ServerClientTestCase::getInstance()->run($clientCode$serverCode);
33:

Expected

Sending bug 46127

Output

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

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

Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /var/php_gcov/PHP_5_6/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10

Warning: fgets() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_5_6/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12

Diff

001+ Warning: stream_socket_client(): SSL: Handshake timed out in /var/php_gcov/PHP_5_6/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
001- Sending bug 46127
002+ 
003+ Warning: stream_socket_client(): Failed to enable crypto in /var/php_gcov/PHP_5_6/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
004+ 
005+ Warning: stream_socket_client(): unable to connect to ssl://127.0.0.1:64321 (Unknown error) in /var/php_gcov/PHP_5_6/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 10
006+ 
007+ Warning: fgets() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_5_6/ext/openssl/tests/ServerClientTestCase.inc(92) : eval()'d code on line 12

 

Generated at Thu, 20 Nov 2014 12:38:44 +0000 (23 hours ago)

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