Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3348

PHP TCompactProtocol bool&int64 readvalue bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.10.0
    • PHP - Library
    • 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

          Activity

            People

              hakon HÃ¥kon Hitland
              Saerdna Dahao.Saerdna.Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified