Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.7, 0.8
-
None
Description
(This is a continuation of THRIFT-1330 which I am unable to reopen.)
In the PHP, old-style namespaces are still broken for enums:
$ 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 {