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

Provide configure option and make rules to build/install php extension

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5
    • 0.5
    • None
    • None
    • Patch Available

    Description

      I like to build and install the php extension at the same time I build the php and other thrift artifacts. The attached path adds the necessary logic to build and install the extension to work on redhat/centos/fedora machines.

      configure has a new option --with-php_extension=yes which will enable the compilation/installation of the extension, along with an environment variable
      PHP_CONFIG_PREFIX which controls where the .ini file for enabling the extension is installed. The one requirement for this to work is the person creating builds must have phpize installed (this prepares the autoconf artifacts to be appropriately added to the distribution). On Centos/Redhat/Fedora this is in the php-devel package.

      Attachments

        1. thrift_protocol.ini
          0.0 kB
          Anthony Molinaro
        2. php-ext.patch
          2 kB
          Anthony Molinaro

        Activity

          People

            djnym Anthony Molinaro
            djnym Anthony Molinaro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: