mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-11-26 17:13:12 +07:00
Fix versioned extensions
This commit is contained in:
@ -32,6 +32,11 @@ export async function addExtensionDarwin(
|
||||
' ' +
|
||||
prefix;
|
||||
return;
|
||||
// match exact versions
|
||||
case /.*-\d+\.\d+\.\d+.*/.test(version_extension):
|
||||
script +=
|
||||
'\nadd_pecl_extension ' + ext_name + ' ' + ext_version + ' ' + prefix;
|
||||
return;
|
||||
case /5\.3xdebug/.test(version_extension):
|
||||
install_command = 'sudo pecl install -f xdebug-2.2.7' + pipe;
|
||||
break;
|
||||
@ -69,7 +74,7 @@ export async function addExtensionDarwin(
|
||||
}
|
||||
script +=
|
||||
'\nadd_extension ' +
|
||||
ext_name +
|
||||
extension +
|
||||
' "' +
|
||||
install_command +
|
||||
'" ' +
|
||||
@ -167,7 +172,8 @@ export async function addExtensionLinux(
|
||||
return;
|
||||
// match exact versions
|
||||
case /.*-\d+\.\d+\.\d+.*/.test(version_extension):
|
||||
script += '\nadd_pecl_extension ' + ext_name + ' ' + ext_version;
|
||||
script +=
|
||||
'\nadd_pecl_extension ' + ext_name + ' ' + ext_version + ' ' + prefix;
|
||||
return;
|
||||
// match 5.6gearman..7.4gearman
|
||||
case /^((5\.6)|(7\.[0-4]))gearman$/.test(version_extension):
|
||||
|
||||
Reference in New Issue
Block a user