-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 1.17.0
-
Component/s: None
-
None
-
PHP Drivers
-
Not Needed
-
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.