Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105764 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98615 invoked from network); 20 May 2019 22:04:07 -0000 Received: from unknown (HELO NAM01-SN1-obe.outbound.protection.outlook.com) (40.92.2.94) by pb1.pair.com with SMTP; 20 May 2019 22:04:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ytSQyk7gsteV92zJ6sXvV1OfTEgmwzWIywvsuPworHI=; b=QGdE/8yVbvqXeRboEwwdss7CzWkvUEeO7Adnwpx5plYGK4qhh/OLkouK1MhPjbdloIZ8WPSq3IQShs1vK3veQrysKKixwjXe/2T7tKNmVDhwP9PQnLvHxfb0gouW8keypmLxXGdNvp0i9KXXl/1LlkVOiS5W4pEDRgX/y2RNmQYntP7dRgjb84wUt0XbqbWLJ8RDSln+/L87NJsL/PGqiPnT+yVpZG57CG8uSUu29kPYcxgVPpWc04ocXzpsaISbWWVhEMLdtyOmaeLCcqmcCbyFPxWb40toLcnWHGri60SDwqauMSGIfBFcncKUZecqkCgrdFqoi17rp3JnCLuC5w== Received: from BN3NAM01FT014.eop-nam01.prod.protection.outlook.com (10.152.66.58) by BN3NAM01HT189.eop-nam01.prod.protection.outlook.com (10.152.67.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1900.16; Mon, 20 May 2019 19:11:19 +0000 Received: from DM5PR06MB2857.namprd06.prod.outlook.com (10.152.66.58) by BN3NAM01FT014.mail.protection.outlook.com (10.152.67.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16 via Frontend Transport; Mon, 20 May 2019 19:11:19 +0000 Received: from DM5PR06MB2857.namprd06.prod.outlook.com ([fe80::8c9a:8f50:c23:76a5]) by DM5PR06MB2857.namprd06.prod.outlook.com ([fe80::8c9a:8f50:c23:76a5%5]) with mapi id 15.20.1900.020; Mon, 20 May 2019 19:11:18 +0000 To: Marco Pivetta CC: PHP internals Thread-Topic: [PHP-DEV] High performance function autoloading Thread-Index: AQHVDy+ySrd8q1/GuEiFhoiHIw5ZMaZ0TDeAgAAN0TY= Date: Mon, 20 May 2019 19:11:18 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:6A7AF5D95D22D2953081D6ECEB33C18A1946E30191FF47D607A609841AF26FE5;UpperCasedChecksum:4ECAF1F6EDC190D2541EE71A8CFDB2EBE35BC5C1A212185607EC2C4580EAE1F2;SizeAsReceived:6895;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [gz9e2Lyj1zuG2gYaznMPFV9AZ0wbc5kJ] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:BN3NAM01HT189; x-ms-traffictypediagnostic: BN3NAM01HT189: x-microsoft-antispam-message-info: +yitSgYJUydB4ZNUnRO356gA2xIkkK8mUDogibfn+CT6S8+dqoXSVjNqNKXiVSpVwfr9Nm8pXTpC4oMyzSb6Aa20pz6LDwyLi+MWpGd9K/Va2ESJn2G9PCcU3L/kF25RdEiMHnqJ8ofTr5VuMHow8xqO/dANDky8cumQRKhU1ebCMRnRWl/lbYL49gdMfHOV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: cf982ab7-bd7c-4248-720f-08d6dd56f03a X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2019 19:11:18.6091 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM01HT189 Subject: Re: [PHP-DEV] High performance function autoloading From: theodorejb@outlook.com (Theodore Brown) On Mon, May 20, 2019 at 12:56 PM Marco Pivetta wrote:= =0A= =0A= > I do like the approach, as it makes the (better) fallback-less function= =0A= > usage opt-in, which is currently only fixed by coding-standards tooling.= =0A= =0A= > To be clear, would this lead to a "Fatal error: Uncaught Error: Call=0A= > to undefined function" in case of autoloader failure?=0A= =0A= Yes, that would be my expectation. Though I didn't mention it in my first= =0A= email, the same approach should work for autoloading constants as well as= =0A= functions.=0A= =0A= If others are in favor, I'd be happy to collaborate on writing an RFC.=0A= I'd need someone more experienced with PHP's internals to help with the=0A= implementation, though.=0A= =0A= Regards,=0A= Theodore=