You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Michael Pearson (JIRA)" <ji...@apache.org> on 2010/03/11 14:05:27 UTC

[jira] Created: (THRIFT-729) I64 types improperly written via TBinaryProtocolAccelerated

I64 types improperly written via TBinaryProtocolAccelerated
-----------------------------------------------------------

                 Key: THRIFT-729
                 URL: https://issues.apache.org/jira/browse/THRIFT-729
             Project: Thrift
          Issue Type: Bug
          Components: Library (PHP)
    Affects Versions: 0.3
         Environment: 32-bit linux (tested centos, ubuntu, debian)
            Reporter: Michael Pearson


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.