You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Randy Abernethy (JIRA)" <ji...@apache.org> on 2015/02/06 01:57:34 UTC

[jira] [Created] (THRIFT-2981) IDL with no namespace produces unparsable PHP

Randy Abernethy created THRIFT-2981:
---------------------------------------

             Summary: IDL with no namespace produces unparsable PHP
                 Key: THRIFT-2981
                 URL: https://issues.apache.org/jira/browse/THRIFT-2981
             Project: Thrift
          Issue Type: Bug
          Components: PHP - Compiler
    Affects Versions: 0.9.2
         Environment: all
            Reporter: Randy Abernethy
            Assignee: Randy Abernethy
            Priority: Minor
             Fix For: 0.9.3


Compiling IDL for PHP without a namespace produces:

{noformat}
namespace ; 
{noformat}

in the generated code which causes PHP to produce:

{noformat}
PHP Parse error:  syntax error, unexpected ';', expecting identifier (T_STRING) or \\\\ (T_NS_SEPARATOR) or '{' in ... on line 2
{noformat}

patch forthcoming.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)