Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108193 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66097 invoked from network); 18 Jan 2020 19:57:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jan 2020 19:57:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A06DE1804AC for ; Sat, 18 Jan 2020 10:05:37 -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 NAM02-CY1-obe.outbound.protection.outlook.com (mail-oln040092004081.outbound.protection.outlook.com [40.92.4.81]) (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, 18 Jan 2020 10:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TlCvMPLnGiE0mM7alsHGZA/H0kxnZOIrsgnjFTekH6ipEh7IOqhISFnplxhcBagr6OvvJ4u8YlNAnbtXmsUdhozTVkZSRqKJLFpEuN5FShgWf7Fh9fO+CKgf5YNx6s2K2HUlxeniOUhxD/eviYYRaEoz4tfISpntrfDrQuHKKUG8FUTWHfZlJeavDlyZPRc0s3FN8rOpuD2UWA2+8+gFU9cmxgokAVUnn9UhsjTCG88UkO8kQR8i5he5fxafVgFlwbzdLCwR+CPiRXa0bHpLx4tWB4UFzcqic5XGukEtaHkrcrmkQsnYZ9Bx5rP8zQKtl3WgK4L3YsZQ0JWijHKKeQ== 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=LYzAvstNOuSV7xKK1qFaOrZD5ej3M7SwpqNuvkIyi/g=; b=ZeZlqpBskMLIYq+5julgbqFVeNcDoObR3Jc2Mus2XrN1WqWRPKchKuma+p01nqIyrK5fa8F+W1v7qiUbGuTLt9qWL6M056l5kVW+vK8Hc6MoYN7H1VA/oDPrc4TbnobpRdl7KgodiUeXAegGpplmuU7lYn+SJ1g9GjHo9+UenWurEylisRyexul5EcienC4BXLWg5fUksPF1l+lQcRtrHbJl7EYrYHIJ6htRsdg018ueIrVS9LNC8WYnTHeKKRv4DqqZK4ed1TtGIOWmutB3HtAFP0WQ/2+LRBe4oKOiXLCcSun3LC91s1HzVH40JvWrnodnObazmD9iyKoghyVtrw== 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=LYzAvstNOuSV7xKK1qFaOrZD5ej3M7SwpqNuvkIyi/g=; b=YylPCCzvLEHAnpVMkiCrJgVtBK8jHAoXP7G5K3TO7lo78afKRh2FMYhkbxZj5RcW/SHSbf+RiddE68yl6TNu+g/qd5ccDX855fxxueMp9QsWZd4JplNdX7bZ1ftRArn7KJM9o6AVezQqVL6xqRyCAS56eWFZ/LVVE6KAEinMkX9DcSr6atXw7wUKpRLEo2fz5+Jk2jP04AyJ91t86WeFQEoDmV7Hqq+bQLWtIpxxP6zdNIZj8f4x2AVlaSxV6zeAa0iH8iuVAuSfI5BWTmAgvk4c+w4glrsoOEdBE7ldxQFLhfl+ZZ5HNI8E1L85X+m3J9donNntnCUlrOeZkIC8nA== Received: from SN1NAM02FT010.eop-nam02.prod.protection.outlook.com (10.152.72.56) by SN1NAM02HT076.eop-nam02.prod.protection.outlook.com (10.152.73.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.19; Sat, 18 Jan 2020 18:05:35 +0000 Received: from DM5PR07MB3067.namprd07.prod.outlook.com (10.152.72.53) by SN1NAM02FT010.mail.protection.outlook.com (10.152.72.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9 via Frontend Transport; Sat, 18 Jan 2020 18:05:35 +0000 Received: from DM5PR07MB3067.namprd07.prod.outlook.com ([fe80::29e3:53bf:163e:5beb]) by DM5PR07MB3067.namprd07.prod.outlook.com ([fe80::29e3:53bf:163e:5beb%3]) with mapi id 15.20.2644.024; Sat, 18 Jan 2020 18:05:35 +0000 To: Nikita Popov CC: "internals@lists.php.net" Thread-Topic: [PHP-DEV] Re: [RFC] "use global functions/consts" statement Thread-Index: AQHVwNgGtev425C1jEaW2/fYCDQJoKfqjUCogAA6vwCAABZSCIAF7qHQ Date: Sat, 18 Jan 2020 18:05:35 +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:629FDC8762741CC99AFC17B89B9A7420A367868632AA80F505E3AFBAAD814A32;UpperCasedChecksum:94156C1FDB74CD3319CF467255DC4D05DCCB4A7767C2CCD7AB15286AFE775A28;SizeAsReceived:7285;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [Mw9nGTkvkX2pJ0xIYGJbAj7KSqjjXqtL] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 48eb2d9f-6e1a-4388-b898-08d79c41046c x-ms-traffictypediagnostic: SN1NAM02HT076: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DLrFkUh4pWPvLUDrt0pE3+T2k6urPoXR38C3cKL5vgULhLhcOswolaQzWgVlKOIEM9geyJkNssZzXfHRy78p4MnU/RDewuxTpF3lWmoqsaWhH3SZ/HwULL2Q6pAaJ4RARpRprk+CXf8yqmAvC6v44TSaiqfAmjfP9i8PiXWHfGdSswDNXRFvFBlYc1kDQBxBIgCBuO46dQKA1kcSLNeGF3rZSZgf+DM9ID+n28x0OSs= 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: 48eb2d9f-6e1a-4388-b898-08d79c41046c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2020 18:05:35.6026 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT076 Subject: Re: [PHP-DEV] Re: [RFC] "use global functions/consts" statement From: tysonandre775@hotmail.com (tyson andre) Hi internals,=0A= =0A= After feedback, the RFC syntax has been changed from `use global functions`= to `declare(disable_ambiguous_element_lookup=3D1)`. In addition,=0A= =0A= - The two settings have been combined into a single option,=0A= which is now declare(disable_ambiguous_element_lookup=3D1) at the top of = a file.=0A= =0A= Those settings would be enabled together, in any use case I can think of.= =0A= - Declaring global functions and constants in files with declare(disable_am= biguous_element_lookup=3D1) is now allowed in any namespace,=0A= to allow code to continue to work even with future changes such as https:= //wiki.php.net/rfc/namespace_scoped_declares=0A= (and so that files declaring functions or constants can have consistent c= oding style with files that don't)=0A= - The following voting choices have been removed: (1) the syntax and for (2= ) whether declaring functions/constants are errors=0A= =0A= The outcome of those votes would noticeably change the RFC and affect whe= ther voters would vote for the RFC as a whole.=0A= =0A= The RFC https://wiki.php.net/rfc/use_global_elements has been updated.=0A= The implementation at https://github.com/php/php-src/pull/4951 has also bee= n updated.=0A= =0A= I was planning to move this to the voting stage on the 25th (1 week),=0A= since the revised RFC is similar to the old RFC,=0A= and arguments in favor of declare() have been mentioned for over 2 weeks.= =0A= =0A= Thanks,=0A= - Tyson=