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

map<string,string> data with number string key cannot access that deserialized by php extension

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.3
    • 0.11.0
    • PHP - Library
    • None
    • php 5.5.9

    Description

      Give a key like '2345', in php script,

      array('2345'=>'value')

      will be processed to

      array(2345=>'value')

      The extension now deserialized data

      {'2345':'value'}


      to

      array('2345'=>'value')

      and php code can not access the key by

      $arr['2345']

      .

      Attachment is a simple script that reproduce this situation.

      Attachments

        1. test.php
          4 kB
          Fei Dong

        Issue Links

          Activity

            People

              jking3 James E. King III
              kdlan Fei Dong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: