From 9e390295b338c89f7a2ea7545153dbfb827ae89b Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 21 Sep 2020 14:50:13 +0200 Subject: [PATCH] Support xdebug with PHP 8 --- data/supported-extensions | 2 +- install-php-extensions | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/data/supported-extensions b/data/supported-extensions index 0337d06..794be8c 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -72,7 +72,7 @@ timezonedb 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 uopz 5.5 5.6 7.0 7.1 7.2 7.3 7.4 uuid 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 wddx 5.5 5.6 7.0 7.1 7.2 7.3 -xdebug 5.5 5.6 7.0 7.1 7.2 7.3 7.4 +xdebug 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 xhprof 5.5 5.6 7.0 7.1 7.2 7.3 7.4 xmlrpc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 xsl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 diff --git a/install-php-extensions b/install-php-extensions index 35989bf..830b1fd 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1317,6 +1317,15 @@ installPECLModule() { installPECLModule_actual="$1-2.5.5" elif test $PHP_MAJMIN_VERSION -le 700; then installPECLModule_actual="$1-2.6.1" + elif test $PHP_MAJMIN_VERSION -ge 800; then + installPECLModule_src="$(getPackageSource https://codeload.github.com/xdebug/xdebug/tar.gz/master)" + cd -- "$installPECLModule_src" + phpize + ./configure --enable-xdebug + make -j$(nproc) + make install + cd - >/dev/null + installPECLModule_manuallyInstalled=1 fi ;; uopz)