Fixed handling of signed 64bit integers to support 32bit and 64bit architectures
Fixed a few bugs with php code generation
Initial stab at setting absolute thrift php require_once paths at configure time in order to guarantee APC caching. Needswork. It's hard to get automake to allow post-processing of installed files.
Lightly reviewed by mark slee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664768 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/php/src/protocol/TProtocol.php b/lib/php/src/protocol/TProtocol.php
index 5a69bbd..a3596ab 100644
--- a/lib/php/src/protocol/TProtocol.php
+++ b/lib/php/src/protocol/TProtocol.php
@@ -1,7 +1,7 @@
<?php
/** Types */
-require_once THRIFT_ROOT.'/protocol/TType.php';
+require_once PREFIX.'thrift/protocol/TType.php';
/**
* Protocol module.
@@ -11,6 +11,21 @@
*/
abstract class TProtocol {
+ /** Writes the message header
+
+ @param TTransport $out Output transport
+ @param name $name Function name
+ @param type $type message type TMessageType::CALL or TMessageType::REPLY
+ @parem seqid $seqid The sequence id of this message */
+
+ public abstract function writeMessageBegin($out, $name, $type, $seqid);
+
+ /** Close the message
+
+ @param TTransport $out Output transport */
+
+ public abstract function writeMessageEnd($out);
+
/**
* Writes a struct header.
*
@@ -68,6 +83,21 @@
public abstract function writeString($out, $str);
+ /** Reads the message header
+
+ @param TTransport $out Output transport
+ @param name $name Function name
+ @param type $type message type TMessageType::CALL or TMessageType::REPLY
+ @parem seqid $seqid The sequence id of this message */
+
+ public abstract function readMessageBegin($out, &$name, &$type, &$seqid);
+
+ /** Read the close of message
+
+ @param TTransport $out Output transport */
+
+ public abstract function readMessageEnd($out);
+
public abstract function readStructBegin($in, &$name);
public abstract function readStructEnd($in);