Github user jeking3 commented on a diff in the pull request: https://github.com/apache/thrift/pull/1340#discussion_r160835825 --- Diff: lib/php/lib/Thrift/Transport/TSocket.php --- @@ -242,8 +242,10 @@ public function open() throw new TException($error); } - $socket = socket_import_stream($this->handle_); - socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1); + if (function_exists('socket_import_stream') && function_exists('socket_set_option')) { --- End diff -- I'd like to know a little more. If the functions don't exist they cannot be called. Is the problem that function_exists is returning the wrong result?
---