Skip to content

Commit 8fd1602

Browse files
feat(agent): remove support for PHPs 7.0 and 7.1 (#907)
EOL PHP 7.0 & 7.1 Support.
1 parent 06824b7 commit 8fd1602

File tree

6 files changed

+9
-47
lines changed

6 files changed

+9
-47
lines changed

.github/workflows/code-coverage-baseline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
matrix:
7070
platform: [gnu, musl]
7171
arch: [amd64]
72-
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
72+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
7373
include:
7474
- codecov: 0
7575
- platform: gnu
@@ -147,7 +147,7 @@ jobs:
147147
matrix:
148148
platform: [gnu, musl]
149149
arch: [amd64]
150-
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
150+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
151151
include:
152152
- codecov: 0
153153
- platform: gnu

.github/workflows/test-agent.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,8 @@ jobs:
9797
matrix:
9898
platform: [gnu, musl]
9999
arch: [amd64, arm64]
100-
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
100+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
101101
exclude:
102-
- arch: arm64
103-
php: '7.0'
104-
- arch: arm64
105-
php: '7.1'
106102
- arch: arm64
107103
php: '7.2'
108104
- arch: arm64
@@ -142,9 +138,7 @@ jobs:
142138
echo "AGENT_CHECK_VARIANT=check" >> $GITHUB_OUTPUT
143139
elif [[ ${{ matrix.platform }} = 'gnu' ]]; then
144140
echo "AGENT_CHECK_VARIANT=valgrind" >> $GITHUB_OUTPUT
145-
elif [[ ${{matrix.php}} = '7.0' || ${{matrix.php}} = '7.1' ]]; then
146-
echo "AGENT_CHECK_VARIANT=check" >> $GITHUB_OUTPUT
147-
else
141+
else
148142
echo "AGENT_CHECK_VARIANT=valgrind" >> $GITHUB_OUTPUT
149143
fi
150144
- name: Build axiom
@@ -208,12 +202,8 @@ jobs:
208202
matrix:
209203
platform: [gnu, musl]
210204
arch: [amd64, arm64]
211-
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
205+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
212206
exclude:
213-
- arch: arm64
214-
php: '7.0'
215-
- arch: arm64
216-
php: '7.1'
217207
- arch: arm64
218208
php: '7.2'
219209
- arch: arm64

agent/newrelic-install.sh

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ check_file "${ilibdir}/scripts/newrelic.ini.template"
327327
# MAKE SURE TO UPDATE THIS LIST WHENEVER SUPPORT IS ADDED OR REMOVED
328328
# FOR A PHP VERSION
329329
# Currently supported versions:
330-
# (7.0, 7.1, 7.2, 7.3, 7.4)
330+
# (7.2, 7.3, 7.4)
331331
# for x64
332332
if [ ${arch} = x64 ]; then
333-
for pmv in "20151012" "20160303" "20170718" "20180731" "20190902"; do
333+
for pmv in "20170718" "20180731" "20190902"; do
334334
check_file "${ilibdir}/agent/${arch}/newrelic-${pmv}.so"
335335
done
336336
fi
@@ -535,8 +535,6 @@ add_to_path /usr/local/php
535535
add_to_path /usr/local/php/bin
536536
add_to_path /usr/local/zend/bin
537537

538-
add_to_path /usr/local/php-7.0/bin
539-
add_to_path /usr/local/php-7.1/bin
540538
add_to_path /usr/local/php-7.2/bin
541539
add_to_path /usr/local/php-7.3/bin
542540
add_to_path /usr/local/php-7.4/bin
@@ -548,8 +546,6 @@ add_to_path /usr/local/php-8.3/bin
548546
add_to_path /opt/local/bin
549547
add_to_path /usr/php/bin
550548

551-
add_to_path /usr/php-7.0/bin
552-
add_to_path /usr/php-7.1/bin
553549
add_to_path /usr/php-7.2/bin
554550
add_to_path /usr/php-7.3/bin
555551
add_to_path /usr/php-7.4/bin
@@ -558,8 +554,6 @@ add_to_path /usr/php-8.1/bin
558554
add_to_path /usr/php-8.2/bin
559555
add_to_path /usr/php-8.3/bin
560556

561-
add_to_path /usr/php/7.0/bin
562-
add_to_path /usr/php/7.1/bin
563557
add_to_path /usr/php/7.2/bin
564558
add_to_path /usr/php/7.3/bin
565559
add_to_path /usr/php/7.4/bin
@@ -571,8 +565,6 @@ add_to_path /usr/php/8.3/bin
571565
add_to_path /opt/php/bin
572566
add_to_path /opt/zend/bin
573567

574-
add_to_path /opt/php-7.0/bin
575-
add_to_path /opt/php-7.1/bin
576568
add_to_path /opt/php-7.2/bin
577569
add_to_path /opt/php-7.3/bin
578570
add_to_path /opt/php-7.4/bin
@@ -1037,22 +1029,6 @@ for this copy of PHP. We apologize for the inconvenience.
10371029
fi
10381030

10391031
case "${pi_ver}" in
1040-
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
1046-
;;
1047-
1048-
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
1054-
;;
1055-
10561032
7.2.*)
10571033
;;
10581034

@@ -1249,8 +1225,6 @@ does not exist. This particular instance of PHP will be skipped.
12491225
#
12501226
pi_modver=
12511227
case "${pi_ver}" in
1252-
7.0.*) pi_modver="20151012" ;;
1253-
7.1.*) pi_modver="20160303" ;;
12541228
7.2.*) pi_modver="20170718" ;;
12551229
7.3.*) pi_modver="20180731" ;;
12561230
7.4.*) pi_modver="20190902" ;;

docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ _(most operating systems package these with `-dev` or `-devel` suffixes)_
5858

5959
### PHP
6060

61-
The PHP agent supports PHP versions `7.0`, `7.1`, `7.2`, `7.3`, `7.4`,`8.0`, `8.1`, '8.2', and `8.3`.
61+
The PHP agent supports PHP versions `7.2`, `7.3`, `7.4`,`8.0`, `8.1`, '8.2', and `8.3`.
6262

6363
## Build the PHP Agent
6464

make/php_versions.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

6-
PHP_VERSION_LIST=$${PHPS:-8.3 8.2 8.1 8.0 7.4 7.3 7.2 7.1 7.0}
6+
PHP_VERSION_LIST=$${PHPS:-8.3 8.2 8.1 8.0 7.4 7.3 7.2}

make/release.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ $(eval $(call RELEASE_AGENT_TARGET,8.0,20200930))
170170
$(eval $(call RELEASE_AGENT_TARGET,7.4,20190902))
171171
$(eval $(call RELEASE_AGENT_TARGET,7.3,20180731))
172172
$(eval $(call RELEASE_AGENT_TARGET,7.2,20170718))
173-
$(eval $(call RELEASE_AGENT_TARGET,7.1,20160303))
174-
$(eval $(call RELEASE_AGENT_TARGET,7.0,20151012))
175173

176174

177175
#

0 commit comments

Comments
 (0)