Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110080 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15262 invoked from network); 8 May 2020 07:45:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 May 2020 07:45:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 309D71804C2 for ; Thu, 7 May 2020 23:21:00 -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-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 ; Thu, 7 May 2020 23:20:59 -0700 (PDT) Received: by mail-qk1-f174.google.com with SMTP id i14so93812qka.10 for ; Thu, 07 May 2020 23:20:59 -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=f++LCXH3Px0xlLJTqbHRVXhaEVnV9lxRWybpcxPqAho=; b=NA3bA62NLn106AKf/rZWenUPzkb2dSrkqaRMagdIrzLQaGk4gln63m7TDlWh67t9jN yM4d8nRhvJV1quR0vbgxW2/aj3iveQPkhoQfj+v0+kTrdIvHoQFHCFYWoZLEK5vTrTK6 eNu1PkulHc1BYCo3ILA8LNfm455v6hWoAs5o5ZkXNVOVEFoXbfSnJuKIxlxvgBhm2sxI 9nwwl19o76Sz+hVn3kx5OseA8FBgn5cGem9Dn4BVFj6q6MpCi6HFPWDZ7NBgxVCEWKrZ /y5gExnXCuSnX/I7T35RIea0qatGX5+t7wUlk22oDPY0FFrQOlKaaKhAhiW4Jv6mvJ3C MCSw== 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=f++LCXH3Px0xlLJTqbHRVXhaEVnV9lxRWybpcxPqAho=; b=sDHDxsUtF79eTCb21G9p7LNzyigcjV2ABF3zWxSiCawMHEbVdtg1Dv0oDkPuXQV0sZ 0qgLa0SeXyuBA+n0aouA6VI4G20Z4XBLAwyScnFOfSLEmqPe9hqN1zGN4YxpQk4qHeqY eU+oAOSvYAi2p1z7sSGlnG8HedwrlEp3WnNiZzAMkRRGVqZQnivWoGCHSm+mi8UjUgHE EeEiEhTWPrrSkjX0WsBPEDNNA80TmoC1IbXj0dqSvH1uPOk/s+JuTtz7iaP4CdcFFVR8 TkrWsVadBFZCQIV0Uct5l4wzkjX0AYvaTxH0YWGU7JagbTcjsYHV47xqnLDdIiSuG0w1 4A7A== X-Gm-Message-State: AGi0PuZpm0JltZoJJdnmcOyqfGnq6L5Lf1qDEGlnhEeZpsi2ywbi3IV8 KgnaH68Ff86+nIsQU1f4I+p79w== X-Google-Smtp-Source: APiQypLi4QOvghtaI5PyNeUbGDDU6AJNGwHePjGf++hiTscxTWScNn8YByD42+DFWrU8fH+Cc5dw9A== X-Received: by 2002:a37:aec7:: with SMTP id x190mr1172838qke.7.1588918856805; Thu, 07 May 2020 23:20:56 -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 r6sm728094qtc.28.2020.05.07.23.20.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2020 23:20:55 -0700 (PDT) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_02EAA385-4C38-431D-B039-F0503924BD7D"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Date: Fri, 8 May 2020 01:20:53 -0500 In-Reply-To: <05D65F68-662F-4AE4-8D84-25B1D4279420@newclarity.net> Cc: Dan Ackroyd , Rowan Tommins , PHP internals , Larry Garfield To: Mike Schinkel References: <05D65F68-662F-4AE4-8D84-25B1D4279420@newclarity.net> X-Mailer: Apple Mail (2.3608.80.23.2.2) Subject: Re: A Standard PHAR library included with PHP? From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_02EAA385-4C38-431D-B039-F0503924BD7D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 7, 2020, at 21:02, Mike Schinkel wrote: >=20 > One potential option that comes to mind is a standard library of = PHP-written functionality bundled in a PHAR file that would be included = with future implementations of PHP and automatically included by PHP. This was the gist of Larry=E2=80=99s comments on the other thread[1]. = Pasted here, for reference: > Between preloading, PHP 7's improvements, FFI funkiness, > and the upcoming JIT, there's been on and off discussion > about moving much of the standard library from C to "PHP > code that is bundled and preloaded automatically." A real > "standard library" in PHP, rather than a bunch of bridged > C functions that exist for the legacy reasons Dan notes > above. > > Making that actually a thing would help obviate a lot of > these issues, I think. It becomes no longer an > implementation question but "just" a packaging question. It wouldn=E2=80=99t need to be a PHAR file, but the general idea is the = same: move a lot of the stuff that can be implemented (without losing = performance) into pure PHP code, while keeping it part of php-src, and = somehow package and bundle it with the `php` binary (or otherwise = include it so that those symbols are loaded when PHP =E2=80=9Cstarts = up=E2=80=9D). IIRC, HHVM also does something like this (or did), and I would be in = favor of this in PHP. Cheers, Ben [1]: https://externals.io/message/109972#110071 --Apple-Mail=_02EAA385-4C38-431D-B039-F0503924BD7D 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----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXrT6RQAKCRCwLZeYnIwH G2PRAPsHSJEPmW5ggju+sveKuTDaLLenMaOh8DZvFwtfxX61SAEAgIBKxsG77149 3MKDgD64C0wPRkbzWnwln1T317KU4Bo= =yL8t -----END PGP SIGNATURE----- --Apple-Mail=_02EAA385-4C38-431D-B039-F0503924BD7D--