THRIFT-924. php: Fix missing comma in generated PHP struct constants
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:13 +0000 (17:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:13 +0000 (17:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005142 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_php_generator.cc

index f95c046..2d9c90c 100644 (file)
@@ -413,7 +413,7 @@ string t_php_generator::render_const_value(t_type* type, t_const_value* value) {
       out << render_const_value(g_type_string, v_iter->first);
       out << " => ";
       out << render_const_value(field_type, v_iter->second);
-      out << endl;
+      out << "," << endl;
     }
     indent_down();
     indent(out) << "))";