Folks,
I'd like to introduce an RFC to lay out a timeline to sunset PECL and open it for discussion.
RFC text is at https://wiki.php.net/rfc/sunset_pecl
Thanks
James
Folks,
I'd like to introduce an RFC to lay out a timeline to sunset PECL and open it for discussion.
RFC text is at https://wiki.php.net/rfc/sunset_pecl
Nice. It might be good to add there that pie is also distributed in a binary form so users on older PHP versions can use it too - that was one of the main blockers before AFAIK.
Cheers
Jakub
Jakub,
Thanks for the feedback.
It might be good to add there that pie is also distributed in a binary form so users on older PHP versions can use it too - that was one of the main blockers before AFAIK.
That's a good point, and something that was initially (and technically still) experimental. I don't know what the usage stats are like, as we don't collect any metrics on PIE side, but it's definitely getting some usage. Perhaps we should start promoting that a little more, and remove the "experimental" flag, as it does indeed help that pre-PHP 8.1 issue.
I'll add a note to that effect, thank you!
Thanks
James
I don't know what the usage stats are like, as we don't collect any metrics on PIE side, but it's definitely getting some usage. Perhaps we should start promoting that a little more, and remove the "experimental" flag, as it does indeed help that pre-PHP 8.1 issue.
PIE doesnt, but packagist does https://packagist.org/extensions
Hi
I'd like to introduce an RFC to lay out a timeline to sunset PECL and open it for discussion.
RFC text is at https://wiki.php.net/rfc/sunset_pecl
Thank you. With Docker, arguably the main remaining user of manually installing third party extensions, removing PECL from the images for PHP 8.6 and having a well-functioning PIE workflow this makes sense to me. The proposed timeline also nicely coincides with the EOL of PHP 8.5, so that there should not be any remaining Docker users that we would break. It might make sense to add
https://github.com/docker-library/php/pull/1654 as a Reference to the RFC and to spell out explicitly why this timeline works out nicely.
I have no other comments to the RFC.
Best regards
Tim Düsterhus
I'd like to introduce an RFC to lay out a timeline to sunset PECL and open it for discussion.
RFC text is at https://wiki.php.net/rfc/sunset_pecl
Hi James,
Thanks for moving this forward. I have a slight concern with the long gap between going fully read-only (mid-2027) and retiring the repository (end of 2029).
In one of the PEAR threads, I linked this blog post by Andrew Nesbitt where he points out the risk of freezing a package which turns out to contain a vulnerability:
https://nesbitt.io/2026/06/23/sunsetting-a-package-manager.html In the current environment, two and a half years seems a long time to serve something nobody can patch.
I think there are two ways we could lessen that risk:
- Have a longer interim stage, where functionality is limited, and deprecation clearly flagged, before going fully read-only.
For instance, registration of new packages could be disabled, and perhaps restrictions placed on version numbers - e.g. allow Swoole 6.1.13 and 6.2.6 as patching existing series, but force 6.3.0 to be PIE only.
We could also restrict packages from listing compatibility with new PHP versions - there's probably no reason for anyone to use PECL to install anything on PHP 8.7 / 9.0.
- Establish a process up front for package maintainers to request publication of security releases, with only a small number of users granted write access.
As Andrew points out, if it's suitably restricted, this security process doesn't need to use the same automation as the original system, it just needs a way for trusted user to manually upload the releases.
What do you think?
--
Rowan Tommins
[IMSoP]
I'd like to introduce an RFC to lay out a timeline to sunset PECL and open it for discussion.
- Have a longer interim stage, where functionality is limited, and deprecation clearly flagged, before going fully read-only.
For instance, registration of new packages could be disabled,
It already is.
and perhaps restrictions placed on version numbers - e.g. allow Swoole 6.1.13 and 6.2.6 as patching existing series, but force 6.3.0 to be PIE only.
This will likely mean changing the peclweb code, and that's something we really shouldn't want to do. Nobody knows the code and it's decades behind the times.
We could also restrict packages from listing compatibility with new PHP versions - there's probably no reason for anyone to use PECL to install anything on PHP 8.7 / 9.0.
Same
- Establish a process up front for package maintainers to request publication of security releases, with only a small number of users granted write access.
As Andrew points out, if it's suitably restricted, this security process doesn't need to use the same automation as the original system, it just needs a way for trusted user to manually upload the releases.
What do you think?
If the long static state is considered a problem, we can just shorten it be a year, and shutting it down a year sooner.
cheers
Derick
If the long static state is considered a problem, we can just shorten it be a year, and shutting it down a year sooner.
I'd actually be fine with this. as Rowan makes a good point about long-time static unchanging deps.
I'm wondering if that's actually already the case. I don't see a way (at least with my permissions) to remove an existing release from PECL in the instance it's deemed vulnerable. If that's the case the biggest impact in that particular instance is new releases that fix any vulnerabilities would only be available through PIE.
I would suggest two changes:
- a mitigation contingency to this risk: if a serious vulnerability is identified in a listed static package, we remove the affected package version(s) manually.
- reduce the overall timeline to 1yr, bring forward all the 2029 dates to 2027. That's 6 months of "heads up", and 6 months of "read only mode plus brownouts" before shutdown ad the end of 2027.
If there's no strong objections to these suggestions, I'll amend the RFC to reflect that in the next couple of days
Thanks
James
If the long static state is considered a problem, we can just shorten it by a year, and shutting it down a year sooner.
I'd actually be fine with this. as Rowan makes a good point about long-time static unchanging deps.
I'm wondering if that's actually already the case. I don't see a way (at least with my permissions) to remove an existing release from PECL in the instance it's deemed vulnerable.
Maintainers can remove existing releases (it's hidden somewhere), and admins, like me, can remove any existing release.
If that's the case the biggest impact in that particular instance is new releases that fix any vulnerabilities would only be available through PIE.
I would suggest two changes:
- a mitigation contingency to this risk: if a serious vulnerability is identified in a listed static package, we remove the affected package version(s) manually.
That would require hacking some XML and removing files, but it can be done. But as the period is only 6 months, then that is not a large problem.
- reduce the overall timeline to 1yr, bring forward all the 2029 dates to 2027. That's 6 months of "heads up", and 6 months of "read only mode plus brownouts" before shutdown ad the end of 2027.
Although I didn't say "to a year" but "by a year", I am still okay with your suggestion.
cheers,
Derick
--
https://derickrethans.nl | https://xdebug.org | https://xdebug.cloud Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support mastodon: @derickr@phpc.social @xdebug@phpc.social
Maintainers can remove existing releases (it's hidden somewhere), and admins, like me, can remove any existing release.
Ah I figured that might be the case!
- a mitigation contingency to this risk: if a serious vulnerability is identified in a listed static package, we remove the affected package version(s) manually.
That would require hacking some XML and removing files, but it can be done. But as the period is only 6 months, then that is not a large problem.
Yeah that's what I was hoping; even if it's just a bit of manual work to remove them, 6 months is hopefully not too long a period to manage any potential risks that surface.
- reduce the overall timeline to 1yr, bring forward all the 2029 dates to 2027. That's 6 months of "heads up", and 6 months of "read only mode plus brownouts" before shutdown ad the end of 2027.
Ah sorry - misread, but I do think reducing to 6 months of read-only phase will minimise the surface risk that Rowan pointed out, and also minimise any potential manual work we might to carry out to manage vulnerabilities.
I've updated the RFC wording accordingly to mention the approach to mitigate any potential vulnerability risks, and reduce the timeline to one year overall.
Thanks folks,
James
Hi
- reduce the overall timeline to 1yr, bring forward all the 2029 dates to 2027. That's 6 months of "heads up", and 6 months of "read only mode plus brownouts" before shutdown ad the end of 2027.
Ah sorry - misread, but I do think reducing to 6 months of read-only phase will minimise the surface risk that Rowan pointed out, and also minimise any potential manual work we might to carry out to manage vulnerabilities.
I've updated the RFC wording accordingly to mention the approach to mitigate any potential vulnerability risks, and reduce the timeline to one year overall.
I believe the adjusted timeline is a tad to fast:
Even though the --with-pear configure flag for PHP is already deprecated, it still exists with the just-released PHP 8.6. The earliest version we could remove the flag entirely is with PHP 8.7, thus next November. That would be just one month before the proposed shutdown date. In practice this means that folks would have little direct heads up that their existing “production build set-up” would break: They upgrade to PHP 8.6 just fine, continuing to use --with-pear as they always did and pecl works, until it doesn't. By first removing the --with-pear for PHP 8.7 there would be a more explicit indication that PECL is actually going away now.
As such, while the RFC is correct in that this is not technically related to PHP’s release cycle, I think there are arguments to account for that nevertheless. This is also what I noted in my previous email with the initial timeline nicely lining up with Docker (who already dropped PECL for 8.6): https://news-web.php.net/php.internals/133017
So I would favor the middle-ground that Derick technically proposed: Extend this through 2028 and make sure --with-pear is gone from 8.7.
Best regards
Tim Düsterhus
So I would favor the middle-ground that Derick technically proposed: Extend this through 2028 and make sure
--with-pearis gone from 8.7.
Tim,
I take your point on board, but I'm still not convinced. Specifically, I'm uncertain about the security ramifications; it means an extra year of potential manual intervention to remove vulnerable packages.
Since this responsibility primarily lies with Derick, I will defer to him what he is comfortable with carrying on. If he's happy to extend to 2028 then I'll adjust the RFC
Thanks
James
So I would favor the middle-ground that Derick technically proposed: Extend this through 2028 and make sure
--with-pearis gone from 8.7.I take your point on board, but I'm still not convinced. Specifically, I'm uncertain about the security ramifications; it means an extra year of potential manual intervention to remove vulnerable packages.
Since this responsibility primarily lies with Derick, I will defer to him what he is comfortable with carrying on. If he's happy to extend to 2028 then I'll adjust the RFC
I think the idea would be to stick this in a repo, so anybody could then make a PR to hide these things. Shouldn't have to be just me.
cheers,
Derick
--
https://derickrethans.nl | https://xdebug.org | https://xdebug.cloud Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support mastodon: @derickr@phpc.social @xdebug@phpc.social
I think the idea would be to stick this in a repo, so anybody could then make a PR to hide these things. Shouldn't have to be just me.
Derick,
Yeah that's fair enough; I've not forgotten this, but I'll try find some time to figure out a process for all this so we've got something concrete before proceeding with a vote. Leave it with me for now!
Thanks
James
I think the idea would be to stick this in a repo, so anybody could then make a PR to hide these things. Shouldn't have to be just me.
Folks - I've updated the RFC text to shut down PECL end of 2028 now.
I've also opened two PRs (to stay draft until the relevant dates):
- https://github.com/php/web-pecl/pull/122 - updates the banner to indicate the site will be made read-only
- https://github.com/php/web-pecl/pull/121 - updates the PECL site to restrict logins to admin only (to allow deleting packages, should they be deemed a critical security risk), and otherwise essentially makes the site read-only. This means the limited set of admins can still log in and delete specific versions, or entire packages, should the need arise, and the responsibility is not only on Derick! :)
I believe all feedback has addressed, I'd like to open the vote 9th December if there is no further concerns.
Thank you everyone for the great feedback!
Thanks
James
RFC text is at https://wiki.php.net/rfc/sunset_pecl
Folks,
Assuming there is no further discussion to be had, I intend to open the vote on the above RFC on Weds 25th November shortly after 7am UTC.
Thanks
James