Add support for old PHP versions on darwin

This commit is contained in:
Shivam Mathur
2020-02-05 20:58:44 +05:30
parent d9cf6f5ad6
commit 326dfd1e76
6 changed files with 132 additions and 49 deletions

8
dist/index.js vendored
View File

@ -2663,7 +2663,13 @@ function addExtensionDarwin(extension_csv, version, pipe) {
' ' +
prefix;
return;
case /5\.6xdebug/.test(version_extension):
case /5\.3xdebug/.test(version_extension):
install_command = 'sudo pecl install -f xdebug-2.2.7' + pipe;
break;
case /5\.4xdebug/.test(version_extension):
install_command = 'sudo pecl install -f xdebug-2.4.1' + pipe;
break;
case /5\.[5-6]xdebug/.test(version_extension):
install_command = 'sudo pecl install -f xdebug-2.5.5' + pipe;
break;
case /7\.0xdebug/.test(version_extension):