Thrift: Added support for double type across all languages
Summary: Just for completeness cause I'm crazy. Let's never use these!
Notes: Also made thrift grammar support # style comments, so you can do this at the top of your files
#!/usr/local/bin/thrift --cpp
/**
* This is a thrift def file youc an invoke directly and gen code!
*/
blah
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664789 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/php/src/protocol/TProtocol.php b/lib/php/src/protocol/TProtocol.php
index 855d588..6101f57 100644
--- a/lib/php/src/protocol/TProtocol.php
+++ b/lib/php/src/protocol/TProtocol.php
@@ -89,6 +89,8 @@
public abstract function writeI64($out, $i64);
+ public abstract function writeDouble($out, $dub);
+
public abstract function writeString($out, $str);
@@ -139,6 +141,8 @@
public abstract function readI64($in, &$i64);
+ public abstract function readDouble($in, &$dub);
+
public abstract function readString($in, &$str);
/**
@@ -160,6 +164,8 @@
return $this->readI32($in, $i32);
case TType::I64:
return $this->readI64($in, $i64);
+ case TType::DOUBLE:
+ return $this->readDouble($in, $dub);
case TType::STRING:
return $this->readString($in, $str);
case TType::STRUCT: