Skip to content

Commit

Permalink
feat(agent): add PHP 8.3 to install script
Browse files Browse the repository at this point in the history
  • Loading branch information
bduranleau-nr committed Sep 26, 2023
1 parent d173275 commit 0e98c03
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions agent/newrelic-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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}"
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}"

Expand Down

0 comments on commit 0e98c03

Please sign in to comment.