Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108428 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98213 invoked from network); 9 Feb 2020 04:27:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Feb 2020 04:27:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8AD6B1804D2 for ; Sat, 8 Feb 2020 18:40:32 -0800 (PST) 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,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8075 40.64.0.0/10 X-Spam-Virus: No X-Envelope-From: Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2051.outbound.protection.outlook.com [40.92.18.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 8 Feb 2020 18:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GfOL6yUcK6SW6JrBt9PQLFy/VUmhim0CBwB9JTNWFWEmD2SjytoE5oV6UX/MzOwhw/ugLI1OjQGusoMbm1BYoVawS7NGdeaG8zMnIrximLBbX6+5mFnVKwN93cJroOAQyMXS52UE/xzRViJjic3G8KWK8OlBg2W9n6AxBlNweEDgp2p2gl4nNRUy6DUDLnUKzllgvZs0c98GH/EA7Y4f2gAGBamw71HvAppr+MtW8nc4NOPFYiRKT7lqutahBX76ZEmbph7HsjkBm1/gCwL4w6fJ2ncJS7qps5glxp7ZN/DcBSxgZNBM8fTuMhIlAORsEyvkSpLrf2qNhzBQ8gvQ3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MJBSTGc/mshAYVC+op8oVbwKv46afT+28/LFS2BSk/A=; b=XGlJiZ32cr/2N186QF3pqWwzj9Y/fkqTiaJ9xFerh7b8vAfptdDTM9yksfcN7InsNjHwEyRCWpHDLTmUSf58JVQ/b+P2dTEJohMATND3ZkHm3HoW6zfn0PidaQah/VyCVbOCNMvMPlGqUdwaiHHqZIT922ho9f1poOBhwDzt10X8Grsv60DaWP007n6caurHgd/XcW6/yfnHFCay0O59C4Kp1uih7w6rcR7o9PIztYI8sUkNLvEzENYNp0KZarj0AhpZ5RSFnDyy4Jkvfx/dX2PV0T47Lm61o9jypn7uYjNHQnzZtNReEf3EWUICNzjHHPQ6AXRZp25mw7e+/6OkbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MJBSTGc/mshAYVC+op8oVbwKv46afT+28/LFS2BSk/A=; b=NOvuyLcNU6J7hW9Yj4c0xHOh7Hs/VdG2uL5zwZhE8FZ26Xoi3sOp5mCfcH0xZnizkn7h/sG7mK+cOqt8d0PxsLWR5yhGlKi38zybMcGMpEaopof0ODyRWvCoJb/GjwsIRvCzGBio2gqW3UNK1/us9GiCDpUbEMnHUK9cySNhWg1bgEqRLziNJpsqJcUBMvHvUya69VgCtq9tL88q9V2dJbroq692HVFdpeM5JUibBrNPPjm9xOIo3Qn07E8sJ8oUg3S0mwFs/Sa0iZACQVsh5l/T2ZyjzVQSW4LCg2yTWdFtye3+THf37Ei3fXKvhTKKh01MpKETGnXoyTPyDHFNxw== Received: from DM6NAM11FT052.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::38) by DM6NAM11HT191.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::310) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.21; Sun, 9 Feb 2020 02:40:30 +0000 Received: from DM5PR07MB3067.namprd07.prod.outlook.com (10.13.172.53) by DM6NAM11FT052.mail.protection.outlook.com (10.13.172.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.21 via Frontend Transport; Sun, 9 Feb 2020 02:40:30 +0000 Received: from DM5PR07MB3067.namprd07.prod.outlook.com ([fe80::1133:bcac:caf1:d588]) by DM5PR07MB3067.namprd07.prod.outlook.com ([fe80::1133:bcac:caf1:d588%3]) with mapi id 15.20.2707.028; Sun, 9 Feb 2020 02:40:30 +0000 To: "internals@lists.php.net" Thread-Topic: Planning an RFC to allow calls to global functions in constant expressions Thread-Index: AQHV2VGmZkZM3HvoRkWNVub65jMyhKgSL0SK Date: Sun, 9 Feb 2020 02:40:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:C65135615AE70C5B3EB732764092FF09DEE01C0886F83C9588F3410343143E07;UpperCasedChecksum:C5168366704F0867E610EE6B0CDFDF737142B4957E5BADB7B535AE6A1259CE41;SizeAsReceived:7022;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [y8XqpSwyA521kOBb4gjBp8BqqwzeSSqs] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: f21ec754-8847-4d73-02c7-08d7ad096df4 x-ms-traffictypediagnostic: DM6NAM11HT191: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CfpI7G/Iz5drdEXvSkPbIxUe5F3Z7LYfAXKzymTluBTwSk8YitUcPBOdafI09Ay00ymyNkPqOlpYdHQA7Tayjo9RlqtKkSUxe+XZEYiI6doV2aSCeTYfiO+GWMXTttEGIl3a4kmSJcb9c22X2dRUBzur6WYlxMlOll778MsmXe/KKMFlNA9bw0D8wuMZJ5qfjz5EbMdJjfhqstUOqcChyQT7k28VSQ3nZAJdYb9Mk/o= x-ms-exchange-antispam-messagedata: Ud7nMMU0Ru0zQy6yLe26D50uzJwdvEPs5tSdFUJWiZCfPZiDBnQMeT3noE9RuLY1qxJzhchtDfsZteXquV2b2a4cl2eVvrVl0gu9RFIFpZSKkanUZfY8SmTy7ftjXoQuPWaicRS0TicC1J+ARIn3eA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: f21ec754-8847-4d73-02c7-08d7ad096df4 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2020 02:40:30.6333 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM11HT191 Subject: Re: Planning an RFC to allow calls to global functions in constant expressions From: tysonandre775@hotmail.com (tyson andre) Hi internals,=0A= =0A= > I have a working implementation for calling global functions in constant = expressions=0A= > at=A0https://github.com/php/php-src/pull/5139=0A= > (see PR description for more details, see tests for how edge cases get re= solved)=0A= =0A= I've written up an early draft of this based on https://wiki.php.net/rfc/ca= lls_in_constant_expressions=0A= The GitHub PR hasn't yet been updated to support (and include tests for) th= e proposed=0A= behavior in instance properties and in parameter defaults, but I plan to wo= rk on that.=0A= =0A= The RFC document also includes the proposed whitelist of functions.=0A= =0A= That document is a rough draft, and will be updated when the implementation= gets updated.=0A= =0A= - Tyson=0A=