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.8, 0.9
Reporter: Jon Stephens
(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
# Issue can also be reproduced with "Thrift version 0.9.0-dev" - trunk as of
this writing
$ 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