From 356b7a7dedb6c6d663a30694ed638c1bbeba4e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20KUBLER?= Date: Tue, 11 Jul 2023 10:38:48 +0200 Subject: [PATCH] chore(pecl): remove useless files and calls --- lib/composer | 2 +- lib/scout | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 lib/scout diff --git a/lib/composer b/lib/composer index e97a9419..b30c7c26 100644 --- a/lib/composer +++ b/lib/composer @@ -127,7 +127,7 @@ function install_composer_deps() { echo "Installing PHP extension: ${ext}" | indent fetch_package "${PHP_BASE_URL}" "${extension_package_path}" "/app/vendor/php" else - install_pecl_extension "${ext}" "${ext_version}" "${CACHE_DIR}" + php::pecl::install_extension "${ext}" "${ext_version}" "${CACHE_DIR}" fi done fi diff --git a/lib/scout b/lib/scout deleted file mode 100644 index 58a5ebb7..00000000 --- a/lib/scout +++ /dev/null @@ -1,22 +0,0 @@ -function install_scout() { - status "ScoutAPM usage detected, installing PHP extension" - - local ext_dir=/app/vendor/php/lib/php/extensions/no-debug-non-zts-$(php_api_version) - local version="${1}" - local cwd=$(pwd) - local temp_dir=$(mktmpdir "scout") - - cd "${temp_dir}" - - curl --location "https://pecl.php.net/get/scoutapm-${version}.tgz" | tar xzv - - cd scoutapm-${version} - /app/vendor/php/bin/phpize - ./configure --with-php-config=/app/vendor/php/bin/php-config --enable-scoutapm - - make - cp modules/scoutapm.so "${ext_dir}/scoutapm.so" - echo "zend_extension=scoutapm.so" > "/app/vendor/php/etc/conf.d/scoutapm.ini" - - cd "${cwd}" -}