Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2382

Allow building the extension statically with php-src

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.19.1
    • Affects Version/s: 1.17.0
    • Component/s: None
    • Labels:
      None
    • PHP Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      PHPC-2275 removed the ability to build the extension statically for PHP by always consulting php-config, which is not available when building PHP itself.

      Adding a conditional check for PHP_VERSION_ID will allow the extension to be compiled within the php-src tree (see: DataDog/dd-trace-php#1238). If that variable is empty, we can fall back to consulting php-config.

      Note: we will not consult PHP_VERSION since that is defined by Alpine containers.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: