Add support for Xdebug3 on stable PHP

This commit is contained in:
Shivam Mathur
2020-06-20 06:25:19 +05:30
parent b9404683e1
commit 52691651dc
9 changed files with 130 additions and 47 deletions

View File

@ -224,13 +224,17 @@ export async function CSVArray(values_csv: string): Promise<Array<string>> {
* @param extension
*/
export async function getExtensionPrefix(extension: string): Promise<string> {
const zend: Array<string> = ['xdebug', 'opcache', 'ioncube', 'eaccelerator'];
const zend: Array<string> = [
'xdebug',
'xdebug3',
'opcache',
'ioncube',
'eaccelerator'
];
switch (zend.indexOf(extension)) {
case 0:
case 1:
default:
return 'zend_extension';
case -1:
default:
return 'extension';
}
}