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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.2
    • 0.9.3
    • PHP - Compiler
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: