Tim Behrendsen created THRIFT-1905:
--------------------------------------

             Summary: Struct names with underscores get mangled in PHP compiled 
output
                 Key: THRIFT-1905
                 URL: https://issues.apache.org/jira/browse/THRIFT-1905
             Project: Thrift
          Issue Type: Bug
          Components: PHP - Compiler
    Affects Versions: 0.9
         Environment: Centos 6.4
            Reporter: Tim Behrendsen


When compiling a thrift file containing a struct name with underscores, the 
underscores get stripped out in the name if the struct is used as a type hint 
in a function definition.

EXAMPLE THRIFT FILE
------------------------------------------------------------------
namespace php TEST

struct Test_SQL_Row {
    1: map<string,string> row
}

service New_Service {

    i16 Tester(1:Test_SQL_Row row),
}
------------------------------------------------------------------

SNIPPET FROM COMPILED OUTPUT
Command: thrift -r --gen php bad.thrift
------------------------------------------------------------------
  public function Tester(\TEST\TestSQLRow $row)
  {
    $this->send_Tester($row);
    return $this->recv_Tester();
  }
------------------------------------------------------------------


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to