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

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

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: