Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1241

php namespace generation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: PHP - Compiler
    • Labels:
    • Environment:

      PHP 5.3

    • Patch Info:
      Patch Available

      Description

      Patch is based mainly on https://issues.apache.org/jira/browse/THRIFT-777, but some more improvements:
      namespace can be specified with dots '.' like for every other language
      for example:
      namespace php com.onego.thrift
      would generate in php file
      namespace com\onego\thrift

      to generate php files with namespaces use:
      thrift --gen php:namespace53 example.thrift

        Attachments

        1. php_namespace_0.7.0.patch
          20 kB
          Darius Staisiunas

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              edast Darius Staisiunas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: