[
https://issues.apache.org/jira/browse/THRIFT-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James E. King III updated THRIFT-1941:
--------------------------------------
Affects Version/s: (was: 1.0)
This issue was marked as affecting version 1.0 which is not possible. If you
know which version this issue was discovered in, please mark it as such.
> 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
> Reporter: Nathaniel Cook
> Priority: Major
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)