THRIFT-1686 t_php_generator.cc uses "and" instead of "&&", and causes compiler errors...
authorRoger Meier <roger@apache.org>
Thu, 6 Sep 2012 17:59:55 +0000 (17:59 +0000)
committerRoger Meier <roger@apache.org>
Thu, 6 Sep 2012 17:59:55 +0000 (17:59 +0000)
Patch: Ben Craig

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

compiler/cpp/src/generate/t_php_generator.cc

index 74c3af3..d728fbf 100644 (file)
@@ -2274,7 +2274,7 @@ string t_php_generator::argument_list(t_struct* tstruct, bool addStructSignature
     t_type* type = (*f_iter)->get_type();
 
     //Set type name
-    if(addStructSignature and type->is_struct())
+    if(addStructSignature && type->is_struct())
     {
       string className = php_namespace(type->get_program()) + php_namespace_directory("Definition", false) + classify(type->get_name());