Yeeeeeeeeahhh
authorMark Slee <mcslee@apache.org>
Tue, 10 Apr 2007 06:44:53 +0000 (06:44 +0000)
committerMark Slee <mcslee@apache.org>
Tue, 10 Apr 2007 06:44:53 +0000 (06:44 +0000)
Summary: Missing that $ in the vairable

Reviewed By: php

Test Plan: you need that!

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

compiler/cpp/src/generate/t_php_generator.cc

index 117d222..7355c57 100644 (file)
@@ -111,7 +111,7 @@ void t_php_generator::generate_enum(t_enum* tenum) {
   }
 
   indent(f_types_) <<
-    "static public __names = array(" << endl;
+    "static public $__names = array(" << endl;
   value = -1;
   for (c_iter = constants.begin(); c_iter != constants.end(); ++c_iter) {
     if ((*c_iter)->has_value()) {