$protocol = new TBinaryProtocol($transport); $testClient = new \ThriftTest\ThriftTestClient($protocol); } else { $bufferedSocket = new TBufferedTransport($socket, 1024, 1024); $transport = $bufferedSocket; $protocol = new TBinaryProtocol($transport); $testClient = new \ThriftTest\ThriftTestClient($protocol); } } $transport->open(); $start = microtime(true); /** * VOID TEST */ print_r("testVoid()"); $testClient->testVoid(); print_r(" = void\n"); /** * STRING TEST */ print_r("testString(\"Test\")"); $s = $testClient->testString("Test"); print_r(" = \"{$s}\"\n"); /** * BYTE TEST */ print_r("testByte(1)"); $u8 = $testClient->testByte(1); print_r(" = {$u8}\n"); /** * I32 TEST