mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix installation of extensions with pdo prefix
This commit is contained in:
parent
8d9a12ba84
commit
46f009cce1
2
.github/workflows/workflow.yml
vendored
2
.github/workflows/workflow.yml
vendored
@ -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
|
||||
|
@ -139,7 +139,9 @@ function extensionArray(extension_csv) {
|
||||
return extension
|
||||
.trim()
|
||||
.replace('php-', '')
|
||||
.replace('php_', '');
|
||||
.replace('php_', '')
|
||||
.replace('pdo_', '')
|
||||
.replace('pdo-', '');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -140,7 +140,9 @@ export async function extensionArray(
|
||||
return extension
|
||||
.trim()
|
||||
.replace('php-', '')
|
||||
.replace('php_', '');
|
||||
.replace('php_', '')
|
||||
.replace('pdo_', '')
|
||||
.replace('pdo-', '');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user