THRIFT-4218: Set TCP_NODELAY for PHP client socket
Client: PHP
Patch: Klaus Trainer

This closes #1283
diff --git a/lib/php/lib/Thrift/Transport/TSocket.php b/lib/php/lib/Thrift/Transport/TSocket.php
index 1495047..dd87039 100644
--- a/lib/php/lib/Thrift/Transport/TSocket.php
+++ b/lib/php/lib/Thrift/Transport/TSocket.php
@@ -241,6 +241,9 @@
       }
       throw new TException($error);
     }
+
+    $socket = socket_import_stream($this->handle_);
+    socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1);
   }
 
   /**