sveneld commented on code in PR #2942:
URL: https://github.com/apache/thrift/pull/2942#discussion_r1510094498


##########
lib/php/lib/Transport/TSSLSocket.php:
##########
@@ -57,7 +57,12 @@ public function __construct(
     ) {
         $this->host_ = $this->getSSLHost($host);
         $this->port_ = $port;
-        $this->context_ = $context;
+        // Initialize a stream context if not provided
+        if ($this->context_ === null) {
+            $this->context_ = stream_context_create();
+        } else {
+            $this->context_ = $context;

Review Comment:
   giving null to stream_socket_client as a context generate a warning



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to