From b39228232d615cbd3f3845959dd359f19b4ed8a8 Mon Sep 17 00:00:00 2001 From: Laurent Martelli Date: Fri, 2 Oct 2015 08:29:58 +0200 Subject: [PATCH] Transmits $errno from stream_socket_client in exception --- library/Requests/Transport/fsockopen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Requests/Transport/fsockopen.php b/library/Requests/Transport/fsockopen.php index 8975e2207..377c1ab32 100755 --- a/library/Requests/Transport/fsockopen.php +++ b/library/Requests/Transport/fsockopen.php @@ -122,7 +122,7 @@ public function request($url, $headers = array(), $data = array(), $options = ar throw new Requests_Exception(rtrim($this->connect_error), 'fsockopen.connect_error'); } else { - throw new Requests_Exception($errstr, 'fsockopenerror'); + throw new Requests_Exception($errstr, 'fsockopenerror', NULL, $errno); return; } }