diff --git a/README.md b/README.md index c4d59a5..af0efca 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,14 @@ PHP plugin for [asdf version manager](https://github.com/HashNuke/asdf). *Original version of this plugin created by [@Stratus3D](https://github.com/Stratus3D)* +## Note: PHP-PEAR + +PHP Pear is down without ETA for when the server will be back. To install PHP without Pear you can specify a `PHP_WITHOUT_PEAR` variable with any value (except no), eg: + +``` +PHP_WITHOUT_PEAR=yes asdf install php 7.2.14 +``` + ## Why using this plug-in? [Original plug-in](https://github.com/Stratus3D/asdf-php) appears to be unmaintained and it doesn't work anymore (at least on OSX), so I fixed it to provide compatibility and improve it's documentation. diff --git a/bin/install b/bin/install index 96511af..0e97d2f 100755 --- a/bin/install +++ b/bin/install @@ -49,6 +49,10 @@ construct_configure_options() { local configure_options="$PHP_CONFIGURE_OPTIONS $global_config" fi + if [ "${PHP_WITHOUT_PEAR:-no}" != "no" ]; then + configure_options="$configure_options --without-pear" + fi + echo "$configure_options" }