You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jon Stephens (Closed) (JIRA)" <ji...@apache.org> on 2012/01/23 17:31:38 UTC

[jira] [Closed] (THRIFT-1501) PHP old namespaces not generated for enums

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

Jon Stephens closed THRIFT-1501.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9

This has already been fixed in trunk
                
> PHP old namespaces not generated for enums
> ------------------------------------------
>
>                 Key: THRIFT-1501
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1501
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Compiler
>    Affects Versions: 0.7, 0.8
>            Reporter: Jon Stephens
>             Fix For: 0.9
>
>
> (This is a continuation of THRIFT-1330 which I am unable to reopen.)
> In the PHP, old-style namespaces are still broken for enums:
> {noformat}
> $ cat test.thrift 
> namespace php TestNamespace
> enum MyEnum {}
> $ thrift -version
> Thrift version 0.8.0
> $ thrift --gen php test.thrift
> $ grep "class TestNamespace" gen-php/test/test_types.php || echo "NO NAMESPACE FOUND"
> NO NAMESPACE FOUND
> $ thrift6 -version
> Thrift version 0.6.0
> $ thrift6 --gen php test.thrift
> $ grep "class TestNamespace" gen-php/test/test_types.php || echo "NO NAMESPACE FOUND"
> final class TestNamespace_MyEnum {
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira