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

integer issues with Haxe PHP targets cause ZigZag encoding to fail

    XMLWordPrintableJSON

Details

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

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

              Dates

                Created:
                Updated:
                Resolved: