mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Specify PHP version when installing ast
This commit is contained in:
parent
a0f02c17c0
commit
d2241010ef
@ -70,7 +70,7 @@ describe('Extension tests', () => {
|
||||
'sudo $debconf_fix apt-get install -y php7.4-sqlite3'
|
||||
);
|
||||
expect(linux).toContain('remove_extension intl');
|
||||
expect(linux).toContain('sudo $debconf_fix apt-get install -y php-ast');
|
||||
expect(linux).toContain('sudo $debconf_fix apt-get install -y php7.4-ast');
|
||||
expect(linux).toContain('sudo $debconf_fix apt-get install -y php-uopz');
|
||||
expect(linux).toContain('add_unstable_extension ast beta extension');
|
||||
expect(linux).toContain('add_pdo_extension mysql');
|
||||
|
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -3052,8 +3052,8 @@ async function addExtensionLinux(extension_csv, version, pipe) {
|
||||
extension = extension.replace(/pdo[_-]|3/, '');
|
||||
add_script += '\nadd_pdo_extension ' + extension;
|
||||
return;
|
||||
// match ast and uopz
|
||||
case /^(ast|uopz)$/.test(extension):
|
||||
// match uopz
|
||||
case /^(uopz)$/.test(extension):
|
||||
command = command_prefix + '-' + extension + pipe;
|
||||
break;
|
||||
// match sqlite
|
||||
|
@ -295,8 +295,8 @@ export async function addExtensionLinux(
|
||||
extension = extension.replace(/pdo[_-]|3/, '');
|
||||
add_script += '\nadd_pdo_extension ' + extension;
|
||||
return;
|
||||
// match ast and uopz
|
||||
case /^(ast|uopz)$/.test(extension):
|
||||
// match uopz
|
||||
case /^(uopz)$/.test(extension):
|
||||
command = command_prefix + '-' + extension + pipe;
|
||||
break;
|
||||
// match sqlite
|
||||
|
Loading…
Reference in New Issue
Block a user