Lines Matching refs:ctx
12 $ctx = stream_context_create(['ssl' => [
21 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
39 $ctx = stream_context_create(['ssl' => $ctxArr]);
40 $client = stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
41 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];
45 $ctx = stream_context_create(['ssl' => $ctxArr]);
46 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
47 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];
51 $ctx = stream_context_create(['ssl' => $ctxArr]);
52 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
53 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];