@@ 138-141 (lines=4) @@ | ||
135 | if ( $secure_transport ) |
|
136 | $error_reporting = error_reporting(0); |
|
137 | ||
138 | if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) |
|
139 | $handle = @stream_socket_client( 'tcp://' . $proxy->host() . ':' . $proxy->port(), $connection_error, $connection_error_str, $connect_timeout, STREAM_CLIENT_CONNECT, $context ); |
|
140 | else |
|
141 | $handle = @stream_socket_client( $connect_host . ':' . $arrURL['port'], $connection_error, $connection_error_str, $connect_timeout, STREAM_CLIENT_CONNECT, $context ); |
|
142 | ||
143 | if ( $secure_transport ) |
|
144 | error_reporting( $error_reporting ); |
|
@@ 146-151 (lines=6) @@ | ||
143 | if ( $secure_transport ) |
|
144 | error_reporting( $error_reporting ); |
|
145 | ||
146 | } else { |
|
147 | if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) |
|
148 | $handle = stream_socket_client( 'tcp://' . $proxy->host() . ':' . $proxy->port(), $connection_error, $connection_error_str, $connect_timeout, STREAM_CLIENT_CONNECT, $context ); |
|
149 | else |
|
150 | $handle = stream_socket_client( $connect_host . ':' . $arrURL['port'], $connection_error, $connection_error_str, $connect_timeout, STREAM_CLIENT_CONNECT, $context ); |
|
151 | } |
|
152 | ||
153 | if ( false === $handle ) { |
|
154 | // SSL connection failed due to expired/invalid cert, or, OpenSSL configuration is broken. |