Omit the stable argument for Windows extensions

This commit is contained in:
Shivam Mathur
2026-12-06 08:05:38 +05:30
parent 7ad1a97ee1
commit 8ca1ee6aee
3 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -7,7 +7,6 @@ describe('Extension tests', () => {
${'none'} | ${'7.4'} | ${'Disable-AllShared'}
${':intl'} | ${'7.4'} | ${'Disable-Extension intl'}
${'ast-beta'} | ${'7.4'} | ${'Add-Extension ast beta'}
${'ast-stable'} | ${'7.4'} | ${'Add-Extension ast stable'}
${'blackfire'} | ${'7.3'} | ${'Add-Blackfire blackfire'}
${'blackfire-1.31.0'} | ${'7.3'} | ${'Add-Blackfire blackfire-1.31.0'}
${'grpc-1.2.3'} | ${'7.4'} | ${'Add-Extension grpc stable 1.2.3'}
@@ -42,6 +41,14 @@ describe('Extension tests', () => {
}
);
it('omits the stable argument from the generated Windows command', async () => {
const script = await extensions.addExtensionWindows(
'mbstring-stable',
'8.4'
);
expect(script.trim()).toBe('Add-Extension mbstring');
});
it.each`
extension | version | output
${'none'} | ${'7.4'} | ${'disable_all_shared'}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -180,7 +180,7 @@ export async function addExtensionWindows(
add_script += await utils.joins(
'\nAdd-Extension',
ext_name,
ext_version
ext_version.replace('stable', '')
);
break;
// match extensions for compiling from source