From: Mark Slee Date: Thu, 22 Feb 2007 01:01:10 +0000 (+0000) Subject: Fix thrift includes X-Git-Tag: 0.2.0~1453 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=1ecb1b053aa5262415c38aa7671a460d20abe674;p=common%2Fthrift.git Fix thrift includes Summary: Remove circular ref Reviewed By: lucas git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665019 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/php/src/Thrift.php b/lib/php/src/Thrift.php index 87bcc2bc..ab56eff0 100644 --- a/lib/php/src/Thrift.php +++ b/lib/php/src/Thrift.php @@ -1,12 +1,35 @@ diff --git a/lib/php/src/protocol/TBinaryProtocol.php b/lib/php/src/protocol/TBinaryProtocol.php index e9ea3b86..91fcd5fb 100644 --- a/lib/php/src/protocol/TBinaryProtocol.php +++ b/lib/php/src/protocol/TBinaryProtocol.php @@ -1,8 +1,5 @@ */ -include_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php'; - -/** - * Data types that can be sent via Thrift - */ -class TType { - const STOP = 0; - const VOID = 1; - const BOOL = 2; - const BYTE = 3; - const I08 = 3; - const DOUBLE = 4; - const I16 = 6; - const I32 = 8; - const I64 = 10; - const STRING = 11; - const UTF7 = 11; - const STRUCT = 12; - const MAP = 13; - const SET = 14; - const LST = 15; // N.B. cannot use LIST keyword in PHP! - const UTF8 = 16; - const UTF16 = 17; -} - -/** - * Message types for RPC - */ -class TMessageType { - const CALL = 1; - const REPLY = 2; -} - /** * Protocol exceptions */