Skip to content

Commit f70a3e9

Browse files
committed
feat: deprecate PHPs 7.0 and 7.1
Have the newrelic-install script log warning when it detects deprecated PHPs.
1 parent bc0766b commit f70a3e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

agent/newrelic-install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,19 @@ for this copy of PHP. We apologize for the inconvenience.
10381038

10391039
case "${pi_ver}" in
10401040
7.0.*)
1041+
warning_message="${pdir}: Support for PHP '${pi_ver}' in the New Relic PHP agent is deprecated."
1042+
if [ -z "${NR_INSTALL_SILENT}" ]; then
1043+
echo $warning_message
1044+
fi
1045+
log $warning_message
10411046
;;
10421047

10431048
7.1.*)
1049+
warning_message="${pdir}: Support for PHP '${pi_ver}' in the New Relic PHP agent is deprecated."
1050+
if [ -z "${NR_INSTALL_SILENT}" ]; then
1051+
echo $warning_message
1052+
fi
1053+
log $warning_message
10441054
;;
10451055

10461056
7.2.*)

0 commit comments

Comments
 (0)