feat: php without pear

This commit is contained in:
Ben Rexin
2019-01-29 18:34:40 +01:00
parent 6d24c36fc6
commit 33ade86cff
2 changed files with 12 additions and 0 deletions

View File

@@ -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.

View File

@@ -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"
}