[PHP] Installing a beta PECL package
Published on 2020-04-01 • Modified on 2020-04-01
I always forget this one. We must set the
preferred_state setting. Once the package is installed, you can restore the previous setting. For example, for the geoip package, if you don't set the state to beta, PECL will install the 1.0.8 version. Otherwise, it will instal the 1.1.1 release. In some cases, the 1.0.8 version can't be compiled while all is OK with the beta version 🧐.
pecl config-set preferred_state beta pecl install geoip pecl config-set preferred_state stable
More on Stackoverflow Read the doc More on the web Random snippet