Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120353 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58566 invoked from network); 19 May 2023 01:48:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 May 2023 01:48:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CCEFD1804F7 for ; Thu, 18 May 2023 18:48:23 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 18 May 2023 18:48:23 -0700 (PDT) Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-561da492bcbso31890307b3.3 for ; Thu, 18 May 2023 18:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20221208.gappssmtp.com; s=20221208; t=1684460902; x=1687052902; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=jx+T3x+QjZKHuS83Q15Q4JFMd0e3m0P2/6OmUCcDBNA=; b=PCr/ldLYagOR/kgxjj0AaX6oOyCnIHdLjxZPAp3hB4clI7SdjvcuvIE3vQnTJjp/oh jI1Kkjl7M5Zb8Rgaxt2O2jnP/9XRq3E4fcBwOrK4B0ZkELNDsaCXQyHNy2/0UpnKuRq0 RT0UqFAd1ZtRy4ciBpBOCETQWf1aHs7oywAHgmgulfX9iD6RoVnc6t8dh5PxzUttBzLI ZD8UeM9FL6oajYvPXYz0JacI7IxiocpEBFzYdDT2Gl+HV52YrlRwHkk3L5FoPwd8xF3v bq+UaZ64+idoxwbA5uDh4J6ocg4Jb8pMONpHLM1k3i679BJueVuZSrxG8ybZ8ErrcZO8 glkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684460902; x=1687052902; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jx+T3x+QjZKHuS83Q15Q4JFMd0e3m0P2/6OmUCcDBNA=; b=His57ObuZ7Zqn8oRIWdX9eWqiacXjpHq2kXr/flKqG5VU1t7nLWqJ5lGEYVVqtSXuO yTtBUogI78d9A1rR9nY68vHGJi1XWbuaXXPytVpu8eXsFMqRv2hW0CpjWxBS/3S26b/w RyVN0qk+OdhSJfSWItjBUwnEPYwMgO7qHAoL/JyQlWjl73vm84ULbMmOGc9UJhj74a6A me6cpnfwhIPboJJS0OeE+jZ1/6afNfP7JRLHO/jiDlu27PqrNV4CDdoUuREyr5N+LXYE T9ootxjwvLWw0KRMvbcatxWZoARtMi5E9wf2EXucNwKxN/JvZ1tu8XEgzTIBymQnvXtg fKSA== X-Gm-Message-State: AC+VfDwgElYNY0xI8oQwToMnrTiJmxQlVsfUmFhUSiqFJkr9QU+RluZO ifjO7oVA6kGyqNAk9FbYRsCiSKfATAaN/6A+Ol/rUA== X-Google-Smtp-Source: ACHHUZ5ydUm8KyLG/Xb+JGpwD31GbDWvwO93QXmMx512YvMFSTd2Cdp70l9Xrkc3ZFUfCxmPu/rVnw== X-Received: by 2002:a0d:fd01:0:b0:561:b65b:300c with SMTP id n1-20020a0dfd01000000b00561b65b300cmr434294ywf.29.1684460901847; Thu, 18 May 2023 18:48:21 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id o126-20020a0dfe84000000b0054601a8399csm820182ywf.119.2023.05.18.18.48.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2023 18:48:21 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Date: Thu, 18 May 2023 21:48:20 -0400 References: <000201d9897f$aa9f9fa0$ffdedee0$@roze.lv> To: PHP internals In-Reply-To: Message-ID: <4CC2548B-280C-4DD8-8E61-44640A03EBE8@newclarity.net> X-Mailer: Apple Mail (2.3696.120.41.1.2) Subject: Re: [PHP-DEV] PHP Package for PHP From: mike@newclarity.net (Mike Schinkel) > On May 18, 2023, at 10:27 AM, Rowan Tommins = wrote: >=20 > On the one hand, PEAR was a single "baseline" that everyone expected; = on > the other hand, packages tended to be slow to adapt to new needs and > fashions, and inflexible to different environments. So instead, people > moved to: >=20 > - Frameworks; which themselves have mostly adopted a "component-based" > approach interoperating via Composer packages > - Non-framework groups like The League of Extraordinary Packages > https://thephpleague.com/ > - Single packages that have become de facto standards - large projects = like > Guzzle and Monolog; and smaller utilities that do one task well, like > Ramsey/UUID >=20 > There are two ways I can see a "standard PHP package" working: >=20 > - As a server-wide install, part of the distributed PHP. That inherits = all > the downsides of PEAR, but might be appropriate for a fairly small = subset > of really low-level functions. > - As a set of Composer packages, managed completely outside the PHP > lifecycle, in which case it's not clear how it would be different from = all > the packages that are already out there. There is at least a 3rd way.=20 There could be server-wide installs with site-root overrides similar to = how .htaccess works with Apache where a `.php` file (or some other name) = in the site root could be used to provide overrides for the standard PHP = library to allow sites to fix bugs, use a newer version, etc.=20 This would allow site owners to resolve PHP standard library related = issues with sites on managed servers where the managed host will not = allow server-wide install to be modified. > Composer seems to be serving the community pretty well for a lot of > functionality. Except for Composer's lack of ability =E2=80=94 by its very nature =E2=80=94= to provide a single "baseline" that everyone can expect, a benefit of = PEAR you noted above.=20 > On May 18, 2023, at 10:43 AM, Reinis Rozitis wrote: >=20 > There is usually the argument - "if this is not in core no one (people = on shared environments/hosting) won't be able to use it" and so on.. Many orgs prefer managed hosting so as not to have to pay for system = administer expertise on staff, and few (any?) managed hosts will modify = their installs to include more than the few highly popular extensions = from PECL. > The counter to that are things like Imagick / redis / memcache(d) / = APCu which are vastly popular but still live outside core (obviously = those are not language rather than engine features). The list of extensions managed hosts will consider installing is so = small =E2=80=94 compared to the hundreds (1000s?) of extensions they = will not =E2=80=94 so pointing to the few outliers that can live outside = core as evidence of developer's ability to address their needs with them = is much like arguing the US Constitution can be amended to solve = existing political problems.=20 Technically both statements are correct, but practically speaking = neither are realistic approaches to solving current day needs.=20 OTOH, a standard library in core written in PHP that could allow for = polyfills for future C-in-core changes, a lower bar for implementing = additions to core (and thus a way to expand those who can actually = contribute to core), and a starting place for anything that could be = written in PHP to be written in PHP so as not to require updating and = testing C code seems to have many benefits. #jmtcw -Mike=