You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2012/01/03 18:35:26 UTC

svn commit: r1226892 - /thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc

Author: bryanduxbury
Date: Tue Jan  3 17:35:26 2012
New Revision: 1226892

URL: http://svn.apache.org/viewvc?rev=1226892&view=rev
Log:
THRIFT-1479. php: Compiled PHP process functions missing writeMessageEnd()

This patch adds in the missing call.

Patch: Andrew Grumet

Modified:
    thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc

Modified: thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc
URL: http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc?rev=1226892&r1=1226891&r2=1226892&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc Tue Jan  3 17:35:26 2012
@@ -1243,6 +1243,7 @@ void t_php_generator::generate_process_f
     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;
   }