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

php namespace generation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 0.7
    • 0.7
    • PHP - Compiler
    • PHP 5.3

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: