summaryrefslogtreecommitdiff
path: root/test/php
diff options
context:
space:
mode:
authorMark Slee <mcslee@apache.org>2006-10-26 04:56:18 +0000
committerMark Slee <mcslee@apache.org>2006-10-26 04:56:18 +0000
commit1dd819cd2be36b7cf6d2ee0f729f40e676085fe4 (patch)
tree28f7cfac1b80aade40c70e0fbc116eac572c4fe0 /test/php
parent35ae1c784ceb8e184e4b3ebc7b0a955f426a8fc8 (diff)
downloadthrift-1dd819cd2be36b7cf6d2ee0f729f40e676085fe4.tar.gz
Bring Thrift test code up to date
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/php')
-rw-r--r--test/php/TestClient.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/php/TestClient.php b/test/php/TestClient.php
index 235abbe27..0f1540c27 100644
--- a/test/php/TestClient.php
+++ b/test/php/TestClient.php
@@ -36,7 +36,7 @@ if ($argc > 2) {
$host = $argv[1];
}
-$hosts = array('localhost', '8.2.3.5');
+$hosts = array('localhost');
$socket = new TSocket($host, $port);
$socket = new TSocketPool($hosts, $port);
@@ -48,8 +48,8 @@ if ($MODE == 'inline') {
} else {
$bufferedSocket = new TBufferedTransport($socket, 1024, 1024);
$transport = $bufferedSocket;
- $protocol = new TBinaryProtocol();
- $testClient = new ThriftTestClient($transport, $protocol);
+ $protocol = new TBinaryProtocol($transport);
+ $testClient = new ThriftTestClient($protocol);
}
$transport->open();