Refactor extension functions to add_extensions scripts

This commit is contained in:
Shivam Mathur
2022-01-02 17:21:14 +05:30
parent d189609ea9
commit 2fd8046c9d
34 changed files with 359 additions and 358 deletions

View File

@ -0,0 +1,6 @@
patch_pdo_oci() {
get -q -n config.m4 https://raw.githubusercontent.com/php/php-src/PHP-8.0/ext/pdo_oci/config.m4
if [[ ${version:?} =~ 5.[3-6] ]]; then
sudo sed -i '' "/PHP_CHECK_PDO_INCLUDES/d" config.m4 2>/dev/null || sudo sed -i "/PHP_CHECK_PDO_INCLUDES/d" config.m4
fi
}