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

PHP JSON serializer converts empty or int-indexed maps to lists

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.9.3
    • Component/s: PHP - Compiler
    • Labels:
      None

      Description

      Because of PHP's idiosyncratic arrays, you can't tell the difference between an empty array and empty associative array (they are the same), or between a thrift map with integer indexes and a list. Fix attached.

        Attachments

          Activity

            People

            • Assignee:
              stigsb Stig Bakken
              Reporter:
              stigsb Stig Bakken
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: