tcpclient : manage the php_errormsg correctely if it doesn't exists
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5911 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -215,6 +215,7 @@ class tcpclient
|
|||||||
$optionsMerged["ssl"] = array_merge ($optionsBase["ssl"], $options);
|
$optionsMerged["ssl"] = array_merge ($optionsBase["ssl"], $options);
|
||||||
stream_set_blocking ($this->socket, true);
|
stream_set_blocking ($this->socket, true);
|
||||||
stream_context_set_option ($this->socket, $optionsMerged);
|
stream_context_set_option ($this->socket, $optionsMerged);
|
||||||
|
$php_errormsg = "";
|
||||||
ini_set ("track_errors", 1);
|
ini_set ("track_errors", 1);
|
||||||
$rc = @stream_socket_enable_crypto ($this->socket, !!$val, $cryptoMethod);
|
$rc = @stream_socket_enable_crypto ($this->socket, !!$val, $cryptoMethod);
|
||||||
ini_set ("track_errors", 0);
|
ini_set ("track_errors", 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user