THRIFT-1479. php: Compiled PHP process functions missing writeMessageEnd()
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 3 Jan 2012 17:35:26 +0000 (17:35 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 3 Jan 2012 17:35:26 +0000 (17:35 +0000)
This patch adds in the missing call.

Patch: Andrew Grumet

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1226892 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_php_generator.cc

index 8381793..ab308ab 100644 (file)
@@ -1243,6 +1243,7 @@ void t_php_generator::generate_process_function(t_service* tservice,
     f_service_ <<
       indent() << "$output->writeMessageBegin('" << tfunction->get_name() << "', " << NS_ROOT << "TMessageType::REPLY, $seqid);" << endl <<
       indent() << "$result->write($output);" << endl <<
+      indent() << "$output->writeMessageEnd();" << endl <<
       indent() << "$output->getTransport()->flush();" << endl;
   }