Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109231 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42047 invoked from network); 23 Mar 2020 16:37:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Mar 2020 16:37:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 06AA71804C3 for ; Mon, 23 Mar 2020 08:01:32 -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,SPF_HELO_NONE,SPF_NONE 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-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 23 Mar 2020 08:01:31 -0700 (PDT) Received: by mail-qv1-f43.google.com with SMTP id p60so7318872qva.5 for ; Mon, 23 Mar 2020 08:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=my4EeYFgAuzOHRQ75kLc5OiuDfwg/u0HcRfY4/cVMQs=; b=ZtNJ294JmJaptSHfckhKObCt13sxt3/w4f8l21OM/aBPX1ICa5DvGLeWsSqiu7HlT/ /n9CZWv+MscPlpcg4jFhZREymvMt5DqQuGMpQB0hkS3uwvRbwu9d/5186byR3GfBNEkQ X5/ylurB5Sbx2+7f/iJxlYdVabyOTyYLoY3+/Yziwen3XpatLm7isKEljeHmCOZWuhdS NLkkVNAtkXYfbhNFdcjAdlqWhov1V5eSU24Dbucoigl37UQvxmQ+PVCOvIUINO/XGen/ zbEeBk/qNMIr5NCp7it9h2JRt1zvapaCX/fRbWqeorn4l4hS9BdXxYK/YBzt4rqrw9H6 lGpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=my4EeYFgAuzOHRQ75kLc5OiuDfwg/u0HcRfY4/cVMQs=; b=lmZmwn1w8Ttiej77HllgsBiLwqo7t7nDYSmRROP+joxI+ZwFXb8S/XOfHsheQ0upOh yJj7Z43QrO7ezAzfVm+8nwrNqLL3CJDI7x3Nx6c3C4L6wKvKc8/UF1NiTk69BXy9NzTD xp0mnG1P1WTkiUg0A+mQ5pkhxttJLmOvL7fbB/YZcEYL6sBsex6vb4wWkH7OcFGDcY5x WFuCWexVxTgNysd4tDTvZz6JVao+na5BlEKxyyVmx9bpkQtxlXqLuVRXkuZfYFRP6fHN +quRR5Dd2CENPvXPKfAmICii3nKCz2ypLK5MzXrfid4mhteN1c0HnL3jsRBRxgba2gD0 r+wQ== X-Gm-Message-State: ANhLgQ1beF1f0sI43CGNSWG+23sK9vBiRKkYJNrINStnPVWESp7eE27X p1beMzZXfmV+Aq87A3r7OsjgQA== X-Google-Smtp-Source: ADFU+vvwaoRpJHzuG/g1vGeEUGfQWUXG9bySica9+ZrbQebOKiLbVPVn2iBHHhZ/9f4fcYNudHDu6A== X-Received: by 2002:ad4:5651:: with SMTP id bl17mr21531747qvb.1.1584975686218; Mon, 23 Mar 2020 08:01:26 -0700 (PDT) Received: from ?IPv6:2601:c0:c680:5cc0:b161:bce7:21ab:aa25? ([2601:c0:c680:5cc0:b161:bce7:21ab:aa25]) by smtp.gmail.com with ESMTPSA id s4sm12476891qte.36.2020.03.23.08.01.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2020 08:01:24 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: <2d2757f9-7303-3f57-6318-68ebdc4a8097@php.net> Date: Mon, 23 Mar 2020 11:01:23 -0400 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <9711E280-743A-4EBE-9E32-9D21A2E5FFC7@newclarity.net> References: <2d2757f9-7303-3f57-6318-68ebdc4a8097@php.net> To: Remi Collet X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] Are PECL modules preferable? From: mike@newclarity.net (Mike Schinkel) > On Mar 23, 2020, at 6:36 AM, Remi Collet wrote: >=20 > Le 21/03/2020 =C3=A0 23:52, Mike Schinkel a =C3=A9crit : >>> On Mar 21, 2020, at 5:59 PM, tyson andre = wrote: >>> FROM: Re: [PHP-DEV] [RFC] is_literal() >>>=20 >>> And if it can be implemented as a PECL module, that would be more = preferable to me than a core module of php. >>> If it was in core, having to support that feature may limit = optimizations or implementation changes that could be done in the = future. >>=20 >> Just wanted to address this comment which was made on another thread = (I did not want to hijack that thread.) >>=20 >> A large number of PHP users have no control over the platform they = run on, so the option to use PECL modules is a non-starter for them. >=20 > Sorry, but PECL is the usual way for new extension >=20 > - add to pecl > - people start using it > - if success add to php-src >=20 > And later >=20 > - move to pecl extensions removed from php-src Yes, it is the usual way. Which from my perspective is flawed because = it means that a large population of PHP developers can never use those = extensions. > Having new extension (outside of language feature) directly added > to php-src is IMHO a terrible way. >=20 > Having "dead" extensions in php-src is a real problem > (the ones nobody take care of anymore, only adapted for new version) That is not the argument that was made. The argument is that a = developer cannot: 1. Depend on a PECL extension to exist, and 2. Cannot even use (most) PECL extensions when they use managed hosting.=20= So the PHP extensions mechanism is in large part the problem here. If = PECL extensions were 100% safe and could be loaded by userland using = only PHP code then most of the pressure to see functionality is core = could be relieved. That's why I floated the idea of supporting WASM in = core. > But I'm probably the only one who think much more extensions > should be removed from php-src and maintained outside, in pecl. Let me guess. You or your team manages your PHP servers, you don't use = managed hosting? -Mike=