thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King, III (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (THRIFT-3896) map<string,string> data with number string key cannot access that deserialized by php extension
Date Mon, 06 Feb 2017 17:55:41 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-3896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James E. King, III reassigned THRIFT-3896:
------------------------------------------

    Assignee: James E. King, III

> map<string,string> data with number string key cannot access that deserialized
by php extension
> -----------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-3896
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3896
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Library
>    Affects Versions: 0.9.3
>         Environment: php 5.5.9
>            Reporter: Fei Dong
>            Assignee: James E. King, III
>         Attachments: test.php
>
>
> Give a key like '2345',  in php script,  
> {noformat}array('2345'=>'value'){noformat}
>  will be processed to 
> {noformat}array(2345=>'value'){noformat}
> The extension now deserialized data {noformat}{'2345':'value'}{noformat} 
> to 
> {noformat}array('2345'=>'value'){noformat}
>  and php code can not access the key by {noformat}$arr['2345']{noformat}.
> Attachment is a simple script that reproduce this situation.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message