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] [Closed] (THRIFT-729) I64 types improperly written via TBinaryProtocolAccelerated
Date Sat, 26 Jan 2019 14:52:00 GMT

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

James E. King III closed THRIFT-729.
------------------------------------
    Resolution: Duplicate
      Assignee: James E. King III

> I64 types improperly written via TBinaryProtocolAccelerated
> -----------------------------------------------------------
>
>                 Key: THRIFT-729
>                 URL: https://issues.apache.org/jira/browse/THRIFT-729
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Library
>    Affects Versions: 0.3
>         Environment: 32-bit linux (tested centos, ubuntu, debian)
>            Reporter: Michael Pearson
>            Assignee: James E. King III
>            Priority: Major
>
> When TBinaryProtocolAccelerated writes an I64 to the network derived from a 32-bit PHP
'float' type, the value is incorrectly attributed a sign.
> Writing round(microtime(true) * 1000, 3) for instance, will appear on the server as something
like -379667704.  This is implemented fine in TBinaryProtocol.php, it only looks to affect
the php module compiled for a 32-bit system (htonll might not be cutting it).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message