From 0e98c032c5cd85e005d798622d2568d13408cbeb Mon Sep 17 00:00:00 2001 From: Brian Duranleau Date: Tue, 26 Sep 2023 12:48:15 -0500 Subject: [PATCH] feat(agent): add PHP 8.3 to install script --- agent/newrelic-install.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/agent/newrelic-install.sh b/agent/newrelic-install.sh index 27edb843b..e81d3b864 100755 --- a/agent/newrelic-install.sh +++ b/agent/newrelic-install.sh @@ -335,10 +335,10 @@ for pmv in "20151012" "20160303" "20170718" "20180731" "20190902"; do done fi # Currently supported versions: -# (8.0, 8.1, 8.2) +# (8.0, 8.1, 8.2, 8.3) # for x64 and aarch64 if [ ${arch} = x64 ] || [ ${arch} = aarch64 ]; then - for pmv in "20200930" "20210902" "20220829"; do + for pmv in "20200930" "20210902" "20220829" "20230831"; do check_file "${ilibdir}/agent/${arch}/newrelic-${pmv}.so" done fi @@ -543,6 +543,7 @@ add_to_path /usr/local/php-7.4/bin add_to_path /usr/local/php-8.0/bin add_to_path /usr/local/php-8.1/bin add_to_path /usr/local/php-8.2/bin +add_to_path /usr/local/php-8.3/bin add_to_path /opt/local/bin add_to_path /usr/php/bin @@ -555,6 +556,7 @@ add_to_path /usr/php-7.4/bin add_to_path /usr/php-8.0/bin add_to_path /usr/php-8.1/bin add_to_path /usr/php-8.2/bin +add_to_path /usr/php-8.3/bin add_to_path /usr/php/7.0/bin add_to_path /usr/php/7.1/bin @@ -564,6 +566,7 @@ add_to_path /usr/php/7.4/bin add_to_path /usr/php/8.0/bin add_to_path /usr/php/8.1/bin add_to_path /usr/php/8.2/bin +add_to_path /usr/php/8.3/bin add_to_path /opt/php/bin add_to_path /opt/zend/bin @@ -576,6 +579,7 @@ add_to_path /opt/php-7.4/bin add_to_path /opt/php-8.0/bin add_to_path /opt/php-8.1/bin add_to_path /opt/php-8.2/bin +add_to_path /opt/php-8.3/bin if [ -n "${NR_INSTALL_PATH}" ]; then oIFS="${IFS}" @@ -1060,6 +1064,10 @@ for this copy of PHP. We apologize for the inconvenience. pi_php8="yes" ;; + 8.3.*) + pi_php8="yes" + ;; + *) error "unsupported version '${pi_ver}' of PHP found at: ${pdir} @@ -1239,6 +1247,7 @@ does not exist. This particular instance of PHP will be skipped. 8.0.*) pi_modver="20200930" ;; 8.1.*) pi_modver="20210902" ;; 8.2.*) pi_modver="20220829" ;; + 8.3.*) pi_modver="20230831" ;; esac log "${pdir}: pi_modver=${pi_modver}"