Add PHP namespacing support to Thrift

Summary: "php_namespace Whoa" at the top of your Thrift file, then all your defined class names start with "Whoa_"

Reviewed By: aditya


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664908 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thrift.l b/compiler/cpp/src/thrift.l
index 44927fa..324c5ea 100644
--- a/compiler/cpp/src/thrift.l
+++ b/compiler/cpp/src/thrift.l
@@ -58,6 +58,7 @@
 "cpp_include"   { return tok_cpp_include;   }
 "cpp_type"      { return tok_cpp_type;      }
 "java_package"  { return tok_java_package;  }
+"php_namespace" { return tok_php_namespace; }
 "include"       { return tok_include;       }
 
 "void"          { return tok_void;          }