Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pie to replace pecl/pear #1554

Open
jnoordsij opened this issue Dec 10, 2024 · 3 comments
Open

Add pie to replace pecl/pear #1554

jnoordsij opened this issue Dec 10, 2024 · 3 comments

Comments

@jnoordsij
Copy link
Contributor

Recently the PHP foundation has been working on a new official tool for installing extensions, which has now been released as PHP PIE. See also https://thephp.foundation/blog/2024/11/19/pie-pre-release/ and https://github.com/php/pie. Given that this aims to replace PECL (and indirectly PEAR), which currently are already deprecated and are causing more and more issues (see e.g. #1552 and #1553), the official image could probably follow the same path at some point.

Given that the tool is currently still in pre-release state and still requires more testing and moreover requires the PHP extension ecosystem to make some active changes to allow installation, the time to migrate is most likely not now just yet. However, I am hoping to slowly start discussing the possibilities and required steps with this issue.

@tianon
Copy link
Member

tianon commented Dec 10, 2024

Nice, this is good to see!

However, I think we'll definitely wait until it's more well-baked / official within the community before considering it, but I'm honestly also kind of inclined to not include it unless/until it's part of the standard PHP install (which is the only reason we include PECL / PEAR today).

@jnoordsij
Copy link
Contributor Author

Leaving it out also sounds quite reasonable; probably the first course of action then, when things stabilize a bit more, is adjusting the docs to list PIE as an alternative/preferred way to install extensions and make note of the deprecation of PECL/PEAR installs.

Wondering though, it seems that PECL/PEAR could also just be installed on their own without including them in the base image. So it feels that there's still some choice here? Although if there's no option to bundle PIE at installation time in a future version, probably not doing that makes more sense. And then keeping PECL/PEAR around until downstream finally removes it is the least disruptive course of action.

@tianon
Copy link
Member

tianon commented Dec 11, 2024

Yeah, we've historically included PECL/PEAR because a "default install" includes them, and we've been explicit about including that configure flag to try and help manage the transition to deprecation, but once it's gone, we definitely don't plan to sideload them or anything like that (especially as related to our experience with similar discussions in Ruby, Python, and Node.js communities who've also had arguments against the "default included" package managers).

Including a blurb in the documentation is totally sane though. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants