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/07 20:24:34 UTC

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

     [ https://issues.apache.org/jira/browse/THRIFT-2981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randy Abernethy updated THRIFT-2981:
------------------------------------
    Attachment: 0001-php-gen-namespace-fix.patch

patch. 

Would be awesome if someone could look this over.

> 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
>
>         Attachments: 0001-php-gen-namespace-fix.patch
>
>
> 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)