Fix installation of extensions with pdo prefix

This commit is contained in:
Shivam Mathur 2019-10-19 19:29:29 +05:30
parent 8d9a12ba84
commit 46f009cce1
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
3 changed files with 7 additions and 3 deletions

View File

@ -33,7 +33,7 @@ jobs:
run: node lib/install.js
env:
php-version: ${{ matrix.php-versions }}
extension-csv: mbstring, xdebug, pcov #optional
extension-csv: mbstring, xdebug, pcov, pdo_mysql #optional
ini-values-csv: post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata #optional
- name: Testing PHP version

View File

@ -139,7 +139,9 @@ function extensionArray(extension_csv) {
return extension
.trim()
.replace('php-', '')
.replace('php_', '');
.replace('php_', '')
.replace('pdo_', '')
.replace('pdo-', '');
});
}
});

View File

@ -140,7 +140,9 @@ export async function extensionArray(
return extension
.trim()
.replace('php-', '')
.replace('php_', '');
.replace('php_', '')
.replace('pdo_', '')
.replace('pdo-', '');
});
}
}