Compiled PHP process functions missing writeMessageEnd()
--------------------------------------------------------
Key: THRIFT-1479
URL: https://issues.apache.org/jira/browse/THRIFT-1479
Project: Thrift
Issue Type: Bug
Components: PHP - Compiler
Affects Versions: 0.8
Reporter: Andrew Grumet
Fix For: 0.9
While testing a PHP implementation of TJSONProtocol, we noticed that the
process_* functions created by
thrift -r --gen php:server
were missing a call to
$output->writeMessageEnd();
This probably went unnoticed in testing to this point because
TBinaryProtocol.php does not issue a message end marker. But with JSON, the
message needs to be closed with a closing square brace.
The attached patch adds the closing square brace.
Generated code has been tested with ThriftTest.thrift and TBinaryProtocol, as
well as with our new JSON implementation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira