Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.2
-
None
-
osx 10.10.5, php 5.5.27, python 2.7.10 thrift 0.9.2 , install by brew. 64 bit machines
-
Patch Available
Description
create a thrift file like
namespace php demo namesapce py demo struct obj{ 1:required i64 int64, 2:required bool bol, } service Demo { obj trans(1:obj item), }
protocol use TCompactProtocol
server is python, client is php
client call trans func with
i64(-1)
bool(true)
and print the server response
the output is
object(demo\obj)#8 (2) { ["int64"]=> float(1.844674407371E+19) ["bol"]=> bool(false) }
Attachments
Issue Links
- is duplicated by
-
THRIFT-1548 PHP TCompactProtocol always reads bools as false
- Resolved
-
THRIFT-5538 TCompactProtocol always decode bool fields as false
- Resolved
-
THRIFT-3767 Read error value in TCompactProtocol when reading a compact Bool value
- Closed
- links to