Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109196 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28219 invoked from network); 22 Mar 2020 00:51:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Mar 2020 00:51:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BE231180503 for ; Sat, 21 Mar 2020 16:15:41 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (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 ; Sat, 21 Mar 2020 16:15:41 -0700 (PDT) Received: by mail-qk1-f182.google.com with SMTP id q188so6049345qke.8 for ; Sat, 21 Mar 2020 16:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=NSooHP3pBLLet5/FiA9qGifAjR95u18mYA6PX3s8REg=; b=bbsIIcaZBizCfQ6JmuekAEbsqQYoM+qiuwbeMKzEm4U9Vjmnk2390XtT42IK5X+YWM ERwEUk+a0WbYKJCVkMxlj5oWNBarmqMz/O6XEGLqegsJfBjc8Jyog53WPPG8MT2kvP8y lqTc4tx+zHy8vTaNFejqVBJsx+KV1F5NR5ofYcYD1VJrpj8X1g+RedNyViglBVSkXZUK q6tqAVhecuo+/NU11oMrfbGsfckYoocaAVeDDu11TAtMYdIGjcOSjt+IUCuhxa61Hbli 5+7y/FzWTFRKmmoEJZyXYX9MAXcg3oGDxcjHRbK5pXZU25+4cTxVZxg8GfBxRW/zwr4H 2ZJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=NSooHP3pBLLet5/FiA9qGifAjR95u18mYA6PX3s8REg=; b=jBrMvIo2itqRLBsD7XucRRxULEww51TFep0r1qah7voTL1cGrzurUvyHVSeTo+4sZt dDYpyfz2oVZ8jUPyOtpKm6DL/s1bvj8GP4nS8cltu2DBdfc4kQd5nGfQTnYUKdsEQkV0 wiTJVL6KHug5j6FnFLlXemjagn27aOvluMSHV7GpeY6N8Nnw9nG8YSxibYdf8ZP/z2O/ LL8EgfncODjCe5cVh12ONJDOOQdnPD6cQoLCzbf3IfdlAac7kj0GpbROpdm+TdvuTnSO faG6gtyPXX50U+7w2KDCp/rZtTwJC2wZU5aLWROW69ePF9OC+KWm+uAV18SRA3aNWMwx Q1Pg== X-Gm-Message-State: ANhLgQ31Nz6ka9kSPYzdU0vR6/ionkiC+W9SWPhGE7kExWz5wvqETGTK 1GP/by9sjAmNPa1nP7e5mc2XGHgz6RFbZg== X-Google-Smtp-Source: ADFU+vuBy2N1h2EefqDpszI8wNj8LBPlVJpCdPMjaDvn6V8zkNswN62PgsSpqxaVe/S0j5VTAdxYvA== X-Received: by 2002:a05:620a:21d2:: with SMTP id h18mr14459746qka.270.1584832540142; Sat, 21 Mar 2020 16:15:40 -0700 (PDT) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id q15sm8608161qtj.83.2020.03.21.16.15.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Mar 2020 16:15:39 -0700 (PDT) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_D363E552-8EE6-4954-9B7D-9FB0FEC2E6CF"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Sat, 21 Mar 2020 18:15:38 -0500 In-Reply-To: Cc: PHP internals To: Mike Schinkel References: X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] Are PECL modules preferable? From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_D363E552-8EE6-4954-9B7D-9FB0FEC2E6CF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 21, 2020, at 17:52, Mike Schinkel wrote: >=20 >> 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 > Here are several of those managed hosting platforms I speak of. = Collectively they host a large number of WordPress sites, and Pantheon = also host Drupal sites: >=20 > https://pagely.com/ > https://wpvip.com/ > https://wpengine.com/ > https://kinsta.com/ > https://pantheon.io/ >=20 > Given that, if there is an option between a useful feature being added = to core or left in PECL, I would vote 100% of the time for core, since = working with WordPress on a corporate site I can rarely ever use PECL = extensions. >=20 > #fwiw >=20 > -Mike If at all possible, I advocate for implementing in userland. Of course, = the specific is_literal/taint feature is special in this regard -- it = can=E2=80=99t be implemented in userland. IMO, PECL is an antiquated system that needs a successor, in much the = same way Composer is the successor to PEAR. I think there are folks = working on a solution for this, but I=E2=80=99m not sure where they are = in their efforts. If we could make extensions as easy to package, = distribute, and install (and load without root privileges) as Composer = packages are, then I think we could say that PECL extensions are = preferable. Maybe FFI can help in this regard? In the meantime, I agree with you that general-use language features = that cannot be implemented in userland can serve the community best in = the core, rather than in PECL, but their general utility will need to be = weighed against their impact to the engine (i.e., if a feature slows = down the engine, we can=E2=80=99t put it into core). Cheers, Ben --Apple-Mail=_D363E552-8EE6-4954-9B7D-9FB0FEC2E6CF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXnagGgAKCRCwLZeYnIwH GyJ6AP9BndnINJl3XgpgGBhZU6UMhya5MmqjAd8bu/re2QTqRwD/V7FiMJz6SFgH WyQ/XJeTZrbYkUj8YHwXLCC2wEl8KZA= =VvBb -----END PGP SIGNATURE----- --Apple-Mail=_D363E552-8EE6-4954-9B7D-9FB0FEC2E6CF--