mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-08-24 00:20:38 +07:00
Fix xdebug version
This commit is contained in:
@@ -146,3 +146,15 @@ export async function log(
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export async function getExtensionPrefix(extension: string): Promise<string> {
|
||||
let zend: Array<string> = ['xdebug', 'opcache'];
|
||||
switch (zend.indexOf(extension)) {
|
||||
case 0:
|
||||
case 1:
|
||||
return 'zend_extension';
|
||||
case -1:
|
||||
default:
|
||||
return 'extension';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user