socket.php
public function openSocket($host, $port, &$error_number, &$error, $timeout)
    {
        return parent::openSocket("tls://$host", $port, $error_number, $error, $timeout);
    }
public function openSocket($host, $port, &$error_number, &$error, $timeout)
    {
        return parent::openSocket("tls://$host", $port, $error_number, $error, $timeout);
    }
public function openSocket ( $ host , $ port , & $ error_number , & $ error , $ timeout ) { return parent :: openSocket ( "tls://$host" , $ port , $ error_number , $ error , $ timeout ) ; }
Actually opens the low level socket.

@param string $host          Host to connect to.
@param int $port         Port on host.
@param int $error_number Recipient of error code.
@param string $error         Recipient of error message.
@param int $timeout      Maximum time to wait for connection.
Actually opens the low level socket .