Setup Xdebug 2.9.8 on PHP 7.2

This commit is contained in:
Shivam Mathur
2020-11-26 23:50:49 +05:30
parent 2fc508f43d
commit 46b357b6c2
5 changed files with 36 additions and 25 deletions

View File

@ -27,13 +27,7 @@ export async function addCoverageXdebug(
'Xdebug enabled as coverage driver',
os_version
);
switch (true) {
case /8.[0-9]/.test(version):
return xdebug + '\n' + ini + '\n' + log;
case /5\.[3-6]|7.[0-4]/.test(version):
default:
return xdebug + '\n' + log;
}
return xdebug + '\n' + ini + '\n' + log;
}
/**

View File

@ -99,6 +99,10 @@ export async function addExtensionWindows(
script +=
'\nAdd-Extension mysql\nAdd-Extension mysqli\nAdd-Extension mysqlnd';
break;
// match 7.2xdebug
case /7\.2xdebug/.test(version_extension):
script += '\nAdd-Extension xdebug stable 2.9.8';
break;
// match 7.0mysql..8.0mysql
// match 7.0mysqli..8.0mysqli
// match 7.0mysqlnd..8.0mysqlnd
@ -179,6 +183,10 @@ export async function addExtensionLinux(
' ' +
version;
return;
// match 7.2xdebug
case /^7\.2xdebug$/.test(version_extension):
script += '\nadd_pecl_extension xdebug 2.9.8 ' + ext_prefix;
return;
// match sqlite
case /^sqlite$/.test(extension):
extension = 'sqlite3';