Add support for newrelic on PHP 8.4, fix installing newrelic on PHP 7.0/7.1 (#1047)

* Add support for newrelic on PHP 8.4

Last week newrelic releases support of PHP 8.4:
- https://docs.newrelic.com/docs/release-notes/agent-release-notes/php-release-notes/php-agent-11-5-0-18/

* Drop support newrelic for php 7.0 and 7.1

* Support php 7.0 & 7.1
pull/1054/head
Javier Espinosa 2025-01-22 11:53:43 +01:00 committed by GitHub
parent 5a87b11620
commit fe56d5746a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -63,7 +63,7 @@ msgpack 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
mssql 5.5 5.6
mysql 5.5 5.6
mysqli 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
newrelic 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
newrelic 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
oauth 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
oci8 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
odbc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4

View File

@ -2649,14 +2649,20 @@ installCargo() {
installNewRelic() {
printf '# Installing newrelic\n'
# see https://docs.newrelic.com/docs/apm/agents/php-agent/getting-started/php-agent-compatibility-requirements/
if test $PHP_MAJMIN_VERSION -le 701; then
installNewRelic_baseUrl=https://download.newrelic.com/php_agent/archive/10.21.0.11/
else
installNewRelic_baseUrl=https://download.newrelic.com/php_agent/release/
fi
installNewRelic_search='\bnewrelic-php[0-9.]*-[0-9]+(\.[0-9]+)*-linux'
case "$DISTRO" in
alpine)
installNewRelic_search="$installNewRelic_search-musl"
;;
esac
installNewRelic_file="$(curl -sSLf -o- https://download.newrelic.com/php_agent/release/ | sed -E 's/<[^>]*>//g' | grep -Eo "$installNewRelic_search.tar.gz" | sort | head -1)"
installNewRelic_url="https://download.newrelic.com/php_agent/release/$installNewRelic_file"
installNewRelic_file="$(curl -sSLf -o- "$installNewRelic_baseUrl" | sed -E 's/<[^>]*>//g' | grep -Eo "$installNewRelic_search.tar.gz" | sort | head -1)"
installNewRelic_url="$installNewRelic_baseUrl$installNewRelic_file"
installNewRelic_src="$(getPackageSource "$installNewRelic_url")"
cd -- "$installNewRelic_src"
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install