From: Roger Meier Date: Fri, 20 Jan 2012 14:34:49 +0000 (+0000) Subject: THRIFT-1496 PHP compiler not namespacing enums X-Git-Tag: 0.9.1~464 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=bc2be31e4805057bda22860713eba72ecf645cd4;p=common%2Fthrift.git THRIFT-1496 PHP compiler not namespacing enums Patch: Andrew Grumet git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1233930 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/generate/t_php_generator.cc b/compiler/cpp/src/generate/t_php_generator.cc index ab308ab1..91beb733 100644 --- a/compiler/cpp/src/generate/t_php_generator.cc +++ b/compiler/cpp/src/generate/t_php_generator.cc @@ -415,7 +415,7 @@ void t_php_generator::generate_enum(t_enum* tenum) { // code but you can't do things like an 'extract' on it, which is a bit of // a downer. f_types_ << - "final class " << tenum->get_name() << " {" << endl; + "final class " << php_namespace(tenum->get_program()) << tenum->get_name() << " {" << endl; indent_up(); for (c_iter = constants.begin(); c_iter != constants.end(); ++c_iter) {