Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125505 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id B45571A00BD for ; Wed, 11 Sep 2024 14:04:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726063605; bh=8D4Gm1DvU4fs6eBJUSktnULyrg10ouLS9ekz6yAoDxI=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=XTeAUEwr/+l5hM0HbfhAT2i8Alhyx6XqNC6oZspbVr1I86yBHAxoIQTT0mpUtMhDJ zx1fj3tCbrulSSFQVHyiebunvI80SJG9XJhDPuXXcVRAys7OBjai4/k1a/Qv4by8ob EAwgE6x8W6P2kDn5CNPGQaOz4DE6DT4XJtdt+9jLHf0UVsN1T/xDFCoxJ1IsuBzTWu t2RH+SeeqxMdmy6gzb9JfPRHsP9vphdAxUxQbZa7ENFQ2x6urP9ujiLbB3y5cyGpCE H/MVM8Jl7fOHKJycn9QLt2k2Tr5HvV2LAUSdnBC+7w377eguC2PYvL04tklEsQe0vB SDq2kRyd5UYNg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B58B418006F for ; Wed, 11 Sep 2024 14:06:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: *** X-Spam-Status: No, score=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 11 Sep 2024 14:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726063481; bh=8D4Gm1DvU4fs6eBJUSktnULyrg10ouLS9ekz6yAoDxI=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=GjSBa59Tldfm0KaA3PQFi62HsW22/J4Gfw6l5YMTrVamVQS/CvpTeuhLZReMgCnPQ Ks/jg3ybjQyWCzmxmcGNf9TIk0I7ShMrk8Wu5JC+rE3i27gYHbiMEPLeB1y11mI1Cz UewyWMZ+cntuX2KjugMhWclth/zjl9WFeBFUaf/Q98M+OJ6503DSpxbcKL5rMVo+ry fo0KZjN8VUTIRDJigax5t4T3sWX3YV5GG3gGgzmORkx6qJAHL3U1+EJ13xEWEsH/QE fFtteLmYfTav9dD53cNduDP9nAyr9sSG44z608NLREN9hlqmPg0MqK4+1oFRKPy2i9 YR9luMTDHjc7w== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 2E24A10C00E; Wed, 11 Sep 2024 15:04:41 +0100 (BST) Date: Wed, 11 Sep 2024 15:04:41 +0100 (BST) To: "Gina P. Banyard" cc: "Christoph M. Becker" , Jim Winstead , internals@lists.php.net Subject: Re: [PHP-DEV] What to do with ext/snmp? In-Reply-To: Message-ID: <311efdd1-be06-e02a-29e3-a6c4b3a23334@php.net> References: <9791621c-1313-4306-bc6a-5dd789f2b2df@gmx.de> <51FA7D6F-09F6-4267-9B57-5CBD42EA898C@cmpct.info> <57156bdd-cf93-404f-a10c-cd842bd7bb92@app.fastmail.com> <27cbee89-093f-4903-baec-a10058370c33@gmx.de> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII From: derick@php.net (Derick Rethans) On Tue, 10 Sep 2024, Gina P. Banyard wrote: > On Friday, 30 August 2024 at 20:13, Christoph M. Becker > 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