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

integer issues with Haxe PHP targets cause ZigZag encoding to fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Haxe - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      With PHP, the integer literal 0x80000000 is stored as a double, not an integer, unless PHP is forced into the latter. Due to the way how Haxe transpiles equality comparison into PHP Code, the result of comparing a variable holding this specific value against another variable or a literal may yield unexpected results.

      Another issue exists regarding incorrect code Generation for Haxe cast(...) statements w/regard to PHP targets.

      Technical details of the issues are available here:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jensg Jens Geyer
                Reporter:
                jensg Jens Geyer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: