1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Tests: Pin Xdebug 3.1.6 for PHP 7.2 through PHP 7.4

Xdebug 3.2.0 and newer dropped support for PHP 7.2 through PHP 7.4.

Source: https://bugs.xdebug.org/bug_view_page.php?bug_id=00002014
This commit is contained in:
Nick Liu
2022-12-10 17:24:38 -06:00
parent 9d4aba8438
commit 0251897e41

View File

@@ -91,9 +91,12 @@ jobs:
- name: PECL install xdebug
run: |
if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.2.0", ">=") ? 1 : 0);') = '1' ]
if [ $(php -r 'printf(version_compare(PHP_VERSION, "8.0.0", ">=") ? 1 : 0);') = '1' ]
then
pecl install xdebug
elif [ $(php -r 'printf(version_compare(PHP_VERSION, "7.2.0", ">=") ? 1 : 0);') = '1' ]
then
pecl install xdebug-3.1.6
elif [ $(php -r 'printf(version_compare(PHP_VERSION, "7.1.0", ">=") ? 1 : 0);') = '1' ]
then
pecl install xdebug-2.9.8