diff --git a/tcpclient.php b/tcpclient.php index ef86827..f1551d0 100644 --- a/tcpclient.php +++ b/tcpclient.php @@ -215,6 +215,7 @@ class tcpclient $optionsMerged["ssl"] = array_merge ($optionsBase["ssl"], $options); stream_set_blocking ($this->socket, true); stream_context_set_option ($this->socket, $optionsMerged); + $php_errormsg = ""; ini_set ("track_errors", 1); $rc = @stream_socket_enable_crypto ($this->socket, !!$val, $cryptoMethod); ini_set ("track_errors", 0);