MCPcopy Create free account
hub / github.com/apache/thrift / getSSLHost

Method getSSLHost

lib/php/lib/Transport/TSSLSocket.php:76–83  ·  view source on GitHub ↗

* Creates a host name with SSL transport protocol * if no transport protocol already specified in * the host name. * * @param string $host Host to listen on * @return string $host Host name with transport protocol */

($host)

Source from the content-addressed store, hash-verified

74 * @return string $host Host name with transport protocol
75 */
76 private function getSSLHost($host)
77 {
78 $transport_protocol_loc = strpos($host, "://");
79 if ($transport_protocol_loc === false) {
80 $host = 'ssl://' . $host;
81 }
82 return $host;
83 }
84
85 /**
86 * Connects the socket.

Callers 2

__constructMethod · 0.95
testGetSSLHostMethod · 0.45

Calls

no outgoing calls

Tested by 1

testGetSSLHostMethod · 0.36