Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125495 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 802801A00C5 for ; Tue, 10 Sep 2024 21:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726002723; bh=k2axLH9asB3Bnf9agMdK4CX7FveUZ8VG91KZP4nfYNY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SoORL2DNWDvk8xNMLWcRQIUCFZ/EjJtwh5MHnNleu7Ms+8Clj5c2pPrgCTVaGrIN4 Dyhyc3k4MrLMr+LzVTsc6LVYdbR6B/9bmXXLYyXT6mH3/gFL+5JEpvZcuRstmGKhGR GLu6CNz4wbHH03y08i0PEom3NqbBBAz1zf8JyMSUqNZh1dvM5lkpTXtldfG60y2kJD 07Lh77Yjn1TcbojS+BLRCF9Qo+IpDWZrGfR10PD68o72ERCueBYU73BVmqYBbmoAzu QDdTEbRt4egbLRt+SUPYis+n2UZcfFiTW32uv3Na8A3WD2O872PxfW/YJYKiUvISoc qokLHevv1bXQQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 42E261801D5 for ; Tue, 10 Sep 2024 21:12:01 +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=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 10 Sep 2024 21:11:59 +0000 (UTC) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-6daf1c4aa86so53855957b3.3 for ; Tue, 10 Sep 2024 14:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1726002597; x=1726607397; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=k2axLH9asB3Bnf9agMdK4CX7FveUZ8VG91KZP4nfYNY=; b=TeaNjVMr/Sp4eZzB0SUTkBbYlGzbMBurNKtiHcs1liQxSCMDkn4He6y19Ufumb7sY7 fA7PHcGEqWZVFhmstrRmh96g1KC05/jzmPwE+ykjRt3Ko5gvZ9DqqFPCuGMF075aUaC8 O3uZBAsIxV3jY2BwEAkA3ZCA7KQzyOE/Zj3wC/udWvD4f+P446PCV1ckxMShgc9lyp3U sWdqxmZ9EzrXRmNNaMkGURT0A8QXXuLtjWOn8/MirtCy3eL0sPGhWlZh0EgXngn4hGuR cGZ3+gDQ++yNsHH6Z4OxnywVnZLf9DUA9w9VN3sEoeYU6ALTIFVHcnD32H7j77XdatF8 2hWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726002597; x=1726607397; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k2axLH9asB3Bnf9agMdK4CX7FveUZ8VG91KZP4nfYNY=; b=j6cYgNSC5r1jKCeBi9S/b9OZWKoLkkTr5nAm+cUOSp2f19su6J6DjiknSjDhKc1NJe 2CfFdhJwXA6J0zbCiXwO+iqlOz3qaUsFLUgEfslihxEcwUAK7pGWttzDRMyk+2pGSyBv yEIDB6ZR52ml0zpVRCUqgXqhe99gK2UQcvX9jx8LOLruvBz82u5p11qm9/W3Xi0G23S+ y+hdL6W+2O7CB9TxgIAwUY09dUymnpIRthPZbnt7ZxeqzJS8kalCN9jBSJPk6W32qEU2 hIcC6wnX3bgvOazZaiRGSEHT0wmDXX+sG6cGIYE5vbE0G3F6UpEdywVoZFCYZoQhrkB3 AfRw== X-Forwarded-Encrypted: i=1; AJvYcCXfAUZMMp1LlRpnF3IzGTj/YxlWkAReCkFdVKd5fiArMJljsy2lTcZwssfZ7COE+qAETVGjet0Dtv4=@lists.php.net X-Gm-Message-State: AOJu0YzBY63QcNiMpHZiNw3g4AhNeOgREklUlnqY/oHl5ggDyDV6f67z ZjWs8gQZ1ep7wwBJYvRexSy0Y69XJvDuSwA6zZChjApf48ME3AxA9EHmr4Nb33SLDMMJlCre/Xy ROfBmI9U5QneawJZ8KkWTpD7HWHzHV5W/8eO1lw== X-Google-Smtp-Source: AGHT+IF3uk0r6zK3RVQTXBzqWga1t/s4d5IftShIGFWf2cTh3kiYYtAbuMB/ubp0lDNkXZ7bgrC6FX7fpK9uChSEjkc= X-Received: by 2002:a05:690c:83:b0:6db:3b2f:a18a with SMTP id 00721157ae682-6db44da2133mr186270407b3.11.1726002597022; Tue, 10 Sep 2024 14:09:57 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 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> In-Reply-To: Date: Tue, 10 Sep 2024 23:09:44 +0200 Message-ID: Subject: Re: [PHP-DEV] What to do with ext/snmp? To: "Gina P. Banyard" Cc: "Christoph M. Becker" , Jim Winstead , PHP internals Content-Type: multipart/alternative; boundary="000000000000ad6c320621ca4bad" From: bilge@scriptfusion.com (Bilge) --000000000000ad6c320621ca4bad Content-Type: text/plain; charset="UTF-8" On Tue, 10 Sept 2024, 22:49 Gina P. Banyard, wrote: > > 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. > 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] > Or fix ext/dba and do a release without the absurd parameter type of > dba_key_split(). > 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. > It would also permit extensions to follow semver while the engine > continues to have its own versioning system. > I really look forward to this. It will be a brave new world when PHP can ship without (m)any extensions and PIE can be used by anyone to customise what's loaded. Only then will the power of PHP's (existing) modularity be fully appreciated. Cheers, Bilge > --000000000000ad6c320621ca4bad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, 10 Sept 2024, 22:49 Gina P. Banyard, <inter= nals@gpb.moe> wrote:=C2=A0

But it is my biggest belief that most extensions would be better outside th= e php-src repo and live in PECL so they could be updated independently and = not tied to the yearly PHP release schedule.
The fact that ext/cURL is not allowed to be updated in patch releases any m= ore means that features in libcurl take *ageees* to get exposed in PHP.
It also prevents extensions to be properly refactored because they are boun= d 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 call= ables" used with xml_set_object() in 1 week by releasing 3 different v= ersions on PECL, instead of performing some refactoring and 1 RFCs. [1]
Or fix ext/dba and do a release without the absurd parameter type of dba_ke= y_split().
Having the DOM extension in PECL and be able to just change the behaviour o= f 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 i= dea) if it wasn't tied to PHP's release schedule and BC policy.
It would also permit extensions to follow semver while the engine continues= to have its own versioning system.

I really look forward to this. It will b= e a brave new world when PHP can ship without (m)any extensions and PIE can= be used by anyone to customise what's loaded. Only then will the power= of PHP's (existing) modularity be fully appreciated.=C2=A0

Cheers,
Bilg= e=C2=A0
--000000000000ad6c320621ca4bad--