File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,18 @@ openssl
5
5
--SKIPIF--
6
6
<?php
7
7
if (!function_exists ("proc_open " )) die ("skip no proc_open " );
8
+ $ packed = str_repeat (chr (0 ), 15 ) . chr (1 );
9
+ if (@inet_ntop ($ packed ) === false ) {
10
+ die ("skip no IPv6 support " );
11
+ }
8
12
?>
9
13
--FILE--
10
14
<?php
11
15
$ certFile = __DIR__ . DIRECTORY_SEPARATOR . 'san_ipv6_peer_matching.pem.tmp ' ;
12
16
$ san = 'IP:2001:db8:85a3:8d3:1319:8a2e:370:7348 ' ;
13
17
14
18
$ serverCode = <<<'CODE'
15
- $serverUri = "ssl://[::1]:64321 ";
19
+ $serverUri = "ssl://[::1]:64324 ";
16
20
$serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
17
21
$serverCtx = stream_context_create(['ssl' => [
18
22
'local_cert' => '%s',
27
31
$ serverCode = sprintf ($ serverCode , $ certFile );
28
32
29
33
$ clientCode = <<<'CODE'
30
- $serverUri = "ssl://[::1]:64321 ";
34
+ $serverUri = "ssl://[::1]:64324 ";
31
35
$clientFlags = STREAM_CLIENT_CONNECT;
32
36
$clientCtx = stream_context_create(['ssl' => [
33
37
'verify_peer' => false,
@@ -60,5 +64,5 @@ Warning: stream_socket_client(): Unable to locate peer certificate CN in %s on l
60
64
61
65
Warning: stream_socket_client(): Failed to enable crypto in %s on line %d
62
66
63
- Warning: stream_socket_client(): Unable to connect to ssl://[::1]:64321 (Unknown error) in %s on line %d
67
+ Warning: stream_socket_client(): Unable to connect to ssl://[::1]:64324 (Unknown error) in %s on line %d
64
68
bool(false)
You can’t perform that action at this time.
0 commit comments