From 8c395145186538f5bef92ab49d5967cfb5c245ae Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 25 Nov 2020 18:47:00 +0100 Subject: [PATCH] Install Xdebug 3 on PHP 7.2+, fix installation of Xdebug on PHP 7.1 Test: xdebug --- install-php-extensions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index 110a0e5..141f76d 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1386,8 +1386,11 @@ 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 -le 701; then + installPECLModule_actual="$1-2.9.8" elif test $PHP_MAJMIN_VERSION -ge 800; then - installPECLModule_src="$(getPackageSource https://codeload.github.com/xdebug/xdebug/tar.gz/master)" + # Workaround for picke problem - see https://github.com/FriendsOfPHP/pickle/issues/188 and https://github.com/FriendsOfPHP/pickle/issues/191 + installPECLModule_src="$(getPackageSource https://codeload.github.com/xdebug/xdebug/tar.gz/3.0.0)" cd -- "$installPECLModule_src" phpize ./configure --enable-xdebug