You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike other reports, the pear/pecl tools are not deprecated in PHP. They're merely not being enabled by default. The pecl tool is the only official way to fetch and compile PHP extensions. Unless there is an official replacement, please continue building the default docker images with the --with-pear flag.
Is someone working on an official replacement? Is there a plan to keep/support that option indefinitely until there is such a thing? FWIW, it is included in the 7.4 images (just not in 8.0 because, as it notes when it's used, we understood it to be deprecated):
Great links, thanks @tianon! So there were talks of deprecating pear in 7.4 and removing it entirely in PHP 8.0. The deprecation seems to have happened, however, the removal of it from PHP 8.0 does not seem to have happened. The documentation on Migrating from PHP 7.4.x to PHP 8.0.x makes no mention of Pear being removed.
It seems to me that the least disruptive thing for folks using the official Docker PHP images is for the --with-pear option to continue to be used until such a time as a community-led best practice is solidified.
I expect that if this is left as is without a clear community-led direction on how to install pecl packages, the official PHP Docker images are about to get a flood of issues asking how to install things like XDebug on the PHP 8.0-* Docker images.
Hello, +1 for the unfortunate unremoved yet --with-pear flag. PHP is not following semantic versioning and also core developers are overloaded with bugs at the moment so, I think it can be removed in some future PHP version instead. Basically, pear is still needed for installing php extensions (pecl script). At least until a better alternative will be done, either with Composer, or entirely new pecl script written.
@michaljusiega Please don't push pickle as acceptable alternative yet. It is not finished, has no proper release, has plenty of issues, and is not adopted by the PHP project.
Reacted by Demin Yin, Stefan Gehrig, Markus Tiefenbacher, James Gilliland, Maud REMORIQUET, Tung Nguyen and othmankabil
@michaljusiega Please don't push pickle as acceptable alternative yet. It is not finished, has no proper release, has plenty of issues, and is not adopted by the PHP project.
You're right.
After release of PHP8.0-alpha1 PECL originally was not available so I was looking for solutions and alternatives.
Since the discussion returned, I would like to return my honor - pickle is not a good solution because I had some problems myself.
Activity
q0rban commentedon Nov 24, 2020
Related issue #846
tianon commentedon Nov 24, 2020
Always appreciate folks from upstream joining our conversations ❤️ 🙏
However, now I'm confused -- we discussed this quite a bit back in #840 (comment) (with @petk 👋) and
./configure --with-pearstill appears to warn that the option is deprecated (https://github.com/php/php-src/blob/706241f82d675421766b23fad4923f22b2c8e32c/configure.ac#L1152 from thePHP-7.4branch and https://github.com/php/php-src/blob/cdd5ec7a3ceb8f3efc12766672c44db65205fdd1/configure.ac#L1114 from thePHP-8.0branch). 😕Is someone working on an official replacement? Is there a plan to keep/support that option indefinitely until there is such a thing? FWIW, it is included in the 7.4 images (just not in 8.0 because, as it notes when it's used, we understood it to be deprecated):
php/7.4/buster/apache/Dockerfile
Lines 225 to 227 in 3dc9a69
If the official recommendation is that it should still be included, why isn't the default
yesinstead ofnoand/or the deprecation warning removed? 😕(Is there perhaps an upstream mailing list thread or issue discussion we could read for follow-up discussion from https://externals.io/message/103977 / php/php-src#3781?)
q0rban commentedon Nov 24, 2020
Great links, thanks @tianon! So there were talks of deprecating pear in 7.4 and removing it entirely in PHP 8.0. The deprecation seems to have happened, however, the removal of it from PHP 8.0 does not seem to have happened. The documentation on Migrating from PHP 7.4.x to PHP 8.0.x makes no mention of Pear being removed.
It seems to me that the least disruptive thing for folks using the official Docker PHP images is for the
--with-pearoption to continue to be used until such a time as a community-led best practice is solidified.I expect that if this is left as is without a clear community-led direction on how to install pecl packages, the official PHP Docker images are about to get a flood of issues asking how to install things like XDebug on the PHP 8.0-* Docker images.
petk commentedon Nov 24, 2020
Hello, +1 for the unfortunate unremoved yet
--with-pearflag. PHP is not following semantic versioning and also core developers are overloaded with bugs at the moment so, I think it can be removed in some future PHP version instead. Basically, pear is still needed for installing php extensions (pecl script). At least until a better alternative will be done, either with Composer, or entirely new pecl script written.q0rban commentedon Nov 24, 2020
Fantastic, thanks for confirming this for us! 😅
There's a pull request to bring the
--with-pearoption back for PHP 8+ Docker images in #1088 .michaljusiega commentedon Nov 24, 2020
I will also remind for alternatives: #1029
derickr commentedon Nov 24, 2020
@michaljusiega Please don't push pickle as acceptable alternative yet. It is not finished, has no proper release, has plenty of issues, and is not adopted by the PHP project.
michaljusiega commentedon Nov 24, 2020
You're right.
After release of PHP8.0-alpha1
PECLoriginally was not available so I was looking for solutions and alternatives.Since the discussion returned, I would like to return my honor -
pickleis not a good solution because I had some problems myself.tianon commentedon Nov 24, 2020
Ahhh, makes sense, thank you for the additional detail! ❤️
Update php
Sync README with package.xml