Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94951 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26740 invoked from network); 8 Aug 2016 20:41:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2016 20:41:28 -0000 Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.86 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.86 mx105.easyname.com Received: from [77.244.243.86] ([77.244.243.86:42196] helo=mx207.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/19-33134-67EE8A75 for ; Mon, 08 Aug 2016 16:41:27 -0400 Received: from cable-81-173-132-156.netcologne.de ([81.173.132.156] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bWrMR-0002X8-7h; Mon, 08 Aug 2016 20:41:23 +0000 Reply-To: internals@lists.php.net References: <33781781-2a63-78c1-68a1-9e19ad720d8d@gmail.com> <1d89ec68-de5e-2670-aed1-f12872c073c3@gmail.com> To: Davey Shafik , Rasmus Schultz Cc: Rowan Collins , internals Message-ID: <2abe55d3-b23a-9b03-59ed-46eb1e1e39ff@fleshgrinder.com> Date: Mon, 8 Aug 2016 22:40:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HjlbE6RnpEMLQxkHjNKHGXS7OlvcJoqjV" Subject: Re: [PHP-DEV] Function auto-loading From: php@fleshgrinder.com (Fleshgrinder) --HjlbE6RnpEMLQxkHjNKHGXS7OlvcJoqjV Content-Type: multipart/mixed; boundary="DQRop5b7H5kenfR6tjqXKLA3vDqbCkW3R" From: Fleshgrinder Reply-To: internals@lists.php.net To: Davey Shafik , Rasmus Schultz Cc: Rowan Collins , internals Message-ID: <2abe55d3-b23a-9b03-59ed-46eb1e1e39ff@fleshgrinder.com> Subject: Re: [PHP-DEV] Function auto-loading References: <33781781-2a63-78c1-68a1-9e19ad720d8d@gmail.com> <1d89ec68-de5e-2670-aed1-f12872c073c3@gmail.com> In-Reply-To: --DQRop5b7H5kenfR6tjqXKLA3vDqbCkW3R Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 8/8/2016 10:23 PM, Davey Shafik wrote: > On Mon, Aug 8, 2016 at 1:15 PM, Rasmus Schultz wro= te: >> Okay, so it doesn't deal with namespaced constants, and maybe this is = me >> being opinionated, but who's going to import constants one by one? >> Constants are usually better off grouped together in a class. Although= I >> don't suppose there's any reason this concept couldn't be expanded to = work >> for constants as well, for completeness at least - though I have doubt= s >> that very many people would care... >> >> Anyways, just spitballing here :-) >> I mentioned auto-loading of constants because it would be nice to have single consistent auto-loading mechanism in PHP for every importable thing. This currently includes classes, interfaces, traits, functions, and well constants. The current composer approach of simply loading the file on every request regardless of whether you need it ever or not works nicely too. On 8/8/2016 10:23 PM, Davey Shafik wrote: > Related to this, I'd like to see stream (and stream filter) autoloading= =2E > Essentially, if you fopen("random://foo") it'll pass that string to an= > autoloader that will load and register the stream. It fails if at the e= nd > of the autoloader the stream isn't registered. >=20 > Similar for filter and stream_filter_(pre|ap)pend() and loading stream > filters. >=20 > - Davey >=20 All resource related stuff is meant to die anyways from what I read and was told in the past here and on GitHub so I guess this will not come. --=20 Richard "Fleshgrinder" Fussenegger --DQRop5b7H5kenfR6tjqXKLA3vDqbCkW3R-- --HjlbE6RnpEMLQxkHjNKHGXS7OlvcJoqjV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXqO5eAAoJEOKkKcqFPVVrGXgQAMPShLRH9wWr9HDk57bwvkfN iEJMWekoW5KWneIpMdcf8NqxSU8tjTyA7d6yrBlLdacEkZsvSm9x+MPamT59Uogl 2InqCunWsM0h/NvV9sQnyD3dR9nMgmyQRMI34M6kt/6dfgbe6Uzd/XtjBk/voseo 8wAKbY4qeKSn+6YZVCyqXbhKYMcr8lFfP84Pc0s3VyHa2kAznIBuGv37UIOCDcXS joytHE84RetNkJn40JgortKV2o9XKjt2tRMnra27JlQLa+IxQqCMxq/jSpEcHwq7 EhBi/r8VJiKLZXl5/4FPRyhIG/4o2SwvGgkMKs9+pHDT7h+DCgnfvHJXOzCT3aNU r8Y2O3zUAdAFyxpAptWrxtiRG+YkoOeKwv31AQC2bPIqRmeVADhSceGPeIRaMLC/ 1D7G0dHlfneXhRFM4VtFdzYYaLmgKTlSP5cphi2VRISrH7oiQnBGFfqDgXiCoYEQ wM1izwvyA93VROJK4QIJ5pNixtsXMArL8U50HOOAl7rCBu/sZn1RsZ+SwEZLPBme yHDni34lJCDTkTFFgyk727XHPv1npkvau6kxhrzlBMxv7MnuQYQlCCPNuDFJ80dv 5AWK8mT38C3GSghAgYv9pBixAD1JEbkuORn8Tn6i5v+L/xG5c5gbxiYmpOKh7TdK vR+ZLlvBaWqH7P4m3Hgz =4LVU -----END PGP SIGNATURE----- --HjlbE6RnpEMLQxkHjNKHGXS7OlvcJoqjV--