On Tue, 10 Sep 2024, Gina P. Banyard wrote:

> On Friday, 30 August 2024 at 20:13, Christoph M. Becker 
> <cmbecke...@gmx.de> wrote:
> 
> > Instead I'm saying that we should be careful to unbundle extensions. 
> > This should probably seen as a last resort if we absolutely can't 
> > maintain the extension any longer, or it doesn't make sense to do 
> > that. I'm not sure yet that ext/snmp falls into this category.
> > 
> > It's easy to vote "yes, unbundle this extension" if you've never 
> > used the extension and are not planning to do so in the future. It 
> > may be a death sentence, though.
> 
> Arguably this is because PECL is a pain to use as a maintainer and 
> that we use PECL as a "graveyard".

Although probably not frictionless, "pecl package" and uploading to the 
website isn't really a *pain*; at most a slight inconvenience. But as 
you know, PIE is on the way.

> But it is my biggest belief that most extensions would be better 
> outside the php-src repo and live in PECL so they could be updated 
> independently and not tied to the yearly PHP release schedule.

Some of that is true, but the issue is also that if they're in PECL, and 
PHP changes or "breaks" APIs, these extensions do not get updated. If 
they were in core, they still would have been. FOr many extensions, just 
*that* sort of maintenance is all they need.

> The fact that ext/cURL is not allowed to be updated in patch releases 
> any more means that features in libcurl take *ageees* to get exposed 
> in PHP. It also prevents extensions to be properly refactored because 
> they are bound to the same BC policy as the PHP engine, which doesn't 
> make a lot of sense to me. I could have cleaned-up ext/xml with all 
> the weird "string method callables" used with xml_set_object() in 1 
> week by releasing 3 different versions on PECL, instead of performing 
> some refactoring and 1 RFCs. [1]
>
> Having the DOM extension in PECL and be able to just change the 
> behaviour of the legacy classes to fix them instead of creating a 
> whole new hierarchy which slows down adoption could also have been 
> prevented (if it is a good idea) if it wasn't tied to PHP's release 
> schedule and BC policy.

But XML parsing is such an integral part of PHP, that this absolutely 
should be in core. For *many* users, if it's not in core, they can't use 
it. Or at least that used to be a big problem.

> Having added support for PIE for ext/csv, which was very easy, [2] I 
> hope when this tool is finally ready, and we ditch PECL, we will start 
> unbundling extensions so that they are not constrained by the PHP 
> Engine release cycle.

I believe that that is a decision for internals, not just "we".

cheers,
Derick

Reply via email to