You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nathaniel Cook (JIRA)" <ji...@apache.org> on 2013/04/22 23:19:16 UTC

[jira] [Updated] (THRIFT-1941) PHP Serializer deserialize doesn't work

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

Nathaniel Cook updated THRIFT-1941:
-----------------------------------

    Attachment: thrift-1941.patch
    
> PHP Serializer deserialize doesn't work
> ---------------------------------------
>
>                 Key: THRIFT-1941
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1941
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Library
>    Affects Versions: 1.0
>            Reporter: Nathaniel Cook
>         Attachments: thrift-1941.patch
>
>
> The deserialize function in TBinarySerializer.php writes a message header to the transport and then tries to deserialize the thrift object. Because the TBinaryProtocolAccelerated class requires a TBufferedTransport it wraps it. The result is that the written message header is in the write buffer of the transport and when the desializer tries to read the data it doesn't get the message header because its only in the write buffer. Calling flush on the transport explicitly after writing the message header fixes the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira