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

PHP: Error when readI64 in TCompactProtocol

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.7, 0.8, 0.9, 0.9.1, 0.9.2, 0.9.3
    • Fix Version/s: 0.10.0
    • Component/s: PHP - Library
    • Labels:
    • Environment:

      all

    • Flags:
      Patch

      Description

      In line 618 of readI64 of TCompactProtocol, the number of shift bit is error. It must be
      $hi |= (($byte & 0x7f) >> (7 - ($shift - 25)));

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nsuke Nobuaki Sukegawa
                Reporter:
                czm1989 Chen Zhiming
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: