Lines Matching refs:ctx
12 $ctx = stream_context_create(['ssl' => [
30 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
48 $ctx = stream_context_create(['ssl' => $ctxArr]);
49 $client = stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
50 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];
54 $ctx = stream_context_create(['ssl' => $ctxArr]);
55 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
56 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];
60 $ctx = stream_context_create(['ssl' => $ctxArr]);
61 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
62 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];