Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115084 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94576 invoked from network); 23 Jun 2021 23:01:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Jun 2021 23:01:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D4ACE1804E3 for ; Wed, 23 Jun 2021 16:20:28 -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=-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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2054.outbound.protection.outlook.com [40.92.18.54]) (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 ; Wed, 23 Jun 2021 16:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jJvjj/2x2V2+uP2sBmYPo8C4pNfYwdmf1tOePo1M3pZV4vA+dfOSSTh7z/di7iM+B81y/OpSPSeFOXlO6VyVj4SlP7VFZO7KImHyCOCiJ7MOrJbG0vcpkRsxI7mQF4WM7S/SS+U+rt3oxj0EktaCufIzT+Eh3cQxObIvedmneLS10D5HbsaAJZvflIELvuwXuQQa5TU9RP5gi4xkJU+mysy2prjrBTQc3cvF8ACDL2h0GdHQ643tM6uW/cQiIDK+zQ2XAqP9mtJC7h3L2ulLlrsX9cCQsmCg6zNW2SCXhhIgcayEhLUYfl56HPvn7dWmREAxObbwSm1e2jF7iAa5kA== 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=KaIrchfVcB3GuuFk4Bk09rHcl71jlnKQ9O2Cu8VdYqE=; b=n2YWthcr6L+qjYo11bJRHPSYfTiQtDmeCNkD/jL3SNsUpOM1g0uDTv428d1l5YaWWcXMijhazPpq0gZuZ28IOOOrOJ2TR2bTof/QJrz2seVszwJnXlXNBqhjzsVRLva+PJkLDUP/OHvercghg7JZTtPp6vqEg+7YjB17ucMcsH1yCYavr35EZzWhy7dArM+4pEjkf4x4m7um7SOdpFyoF06MRjicHzacoTlyftqtZ10us9JsD5Q9ZrM7/TehrbMnIegAebihnurWjPPZJJvhonBKzBowm4uxz4oYwBYtSBxlMi1Eufx4nEudvsr7sZS9v08UT8DQDZZSypbzQS3ahQ== 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=KaIrchfVcB3GuuFk4Bk09rHcl71jlnKQ9O2Cu8VdYqE=; b=jW8x9jFq25+KjyPQaufxpwKJP1FdlIj/0E9mCq04me2WVMEmcmgWJz4uLFxeraq7oomIj3X6VUZVNjY8hR11lE/ftNIr3XmceqC6pA8H59+G5IHHRz1gUmQeynoaCVAg9hbDCGKqUufVcubDtYcZOeFEarsaQdeEseidgPoXVMWIlpeXeRgjd6n5oQJxKyP9PJORzaVTL4jPwHHu1bV8OrDsKeJ7OiwIFQAbaaokiA+VyNf9knkTuUHFPql8w7nc950QWSnzgqIYGLg8dBjew51dc38OVuFF33Anc2LaYgqhVfeLkRtCLC8wsWbdQUw8xQb5gAp3DGnJjtj7G2zk0w== Received: from BN8NAM11FT053.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::4e) by BN8NAM11HT190.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18; Wed, 23 Jun 2021 23:20:26 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:fc4b::40) by BN8NAM11FT053.mail.protection.outlook.com (2a01:111:e400:fc4b::465) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Wed, 23 Jun 2021 23:20:26 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::20ed:6cd1:4fe2:eea7]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::20ed:6cd1:4fe2:eea7%3]) with mapi id 15.20.4242.023; Wed, 23 Jun 2021 23:20:26 +0000 To: "internals@lists.php.net" Thread-Topic: [PHP-DEV] [Vote] make Reflection*#setAccessible() no-op Thread-Index: AQHXaEHZJXBjURNNnEC8ZpXq9kIrBKsiOhy6 Date: Wed, 23 Jun 2021 23:20:26 +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:01E4002D023D6E394CABD05FBF96C4F0033B2AACF5C5F3F91084AE9BDD4E0785;UpperCasedChecksum:D73FFCE321CFC5949C9E18568B38AF055F431850B30023612BC30BEAA3B0D43C;SizeAsReceived:7048;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [Yu6yiPu6WfCSb6S8Guf+IKNni+lPLkezz+mxlPtZ3Cmp+2goPfbURX2GgZe+KnF9] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: cafe4a6f-32df-44e9-3ae5-08d9369d7bbd x-ms-traffictypediagnostic: BN8NAM11HT190: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3AICspIfcAKysOLgdDIy695XA5quwlE+IP8faeM8y02OShXML0ju3CDhHturEOaCowJZXaB+y0SE/EZm3+NM9qc0SVp6RfBXa+1/aPuUDWp8yrcNWiIgqUbGPQma6EkTl/jGESlx/gCVAP8+R169gYxIQlZt8qNWAGOcjd6cWKlZLGIcZVxEUAXwPeeqJ62fIBbrWcKh8kwTyjuAgNDu6qYZq5Ised9jJ97S6ftzEb2KQ9HC7B5Wr37F74Mu0smaa/6wrZn6QYRBi0g/G1DkcnXDbB1ssM783dIXnFL74ehVMfMoaVDwyUAHetw+g0saRTEUlSzBPX2GDYwX8WVvQOzs1LkNjaIVQbsO6oON2PH2bAdl9tM66otd7qXScZxpJP4IcuaA5HSLQteJ0sXabMmUJPJLfOZo7CuJRjwThl0Gyl71sVmIrdwc2e3RMrXpMY0umzMt3bMh8oba2nQtfw== x-ms-exchange-antispam-messagedata: KsH6xNStZUDo3N9R8ehwRO6lIoehIZX1yOKEO/8qcOv5aiklcaMWpIBq4y2yAw2VYLAa+H+xCLzl9agZ/GFGp2Ci7Tvnqke1+M8daOgC3WLDFhDZ+EypTAxYwv6BCH7JjgJ++Y6mV0p/riADgJlCatmtdPzeJ8Vou3JekD1l4hW1h0WtMUTCTSdWnovJ2vuWIB9s7ADunZWfI5fBHc/FgA== 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-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: cafe4a6f-32df-44e9-3ae5-08d9369d7bbd X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2021 23:20:26.2490 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM11HT190 Subject: Re: [PHP-DEV] [Vote] make Reflection*#setAccessible() no-op From: tysonandre775@hotmail.com (tyson andre) Mi Marco Pivetta,=0A= =0A= > I'm opening the vote for making `Reflection*#setAccessible()`.=0A= > =0A= > Voting starts today (2021-06-23) and ends in 14 days (2021-07-07).=0A= > =0A= > Vote at https://wiki.php.net/rfc/make-reflection-setaccessible-no-op=0A= > =0A= > Discussion: https://marc.info/?l=3Dphp-internals&m=3D162360269505048&w=3D= 2=0A= > =0A= > Discussion^2: https://externals.io/message/114841=0A= =0A= I'm in favor of this even without adding isAccessible(),=0A= but just to note:=0A= =0A= https://wiki.php.net/rfc/howto mentions:=0A= =0A= > Listen to the feedback, and try to answer/resolve all questions.=0A= > **Update your RFC to document all the issues and discussions.=0A= > Cover both the positive and negative arguments.** Put the RFC URL into al= l your replies.=0A= =0A= 1. This should probably link to the RFC discussions in a References section= ,=0A= not everyone who votes reads the mailing list.=0A= 2. https://externals.io/message/114841#114845 is the only thing that resem= bled an objection for a "Discussion" =0A= section or future scope, though=0A= =0A= > I think that isAccessible should be added if any applications actually= did depend on ReflectionException=0A= > being thrown for correctness - they could throw their own exception if= isAccessible was false.=0A= > (e.g. for code meant to handle possibly undefined public typed propert= ies by checking for initialization=0A= > then getting the value)=0A= >=0A= > I can't actually remember needing this (anything other than setAccessi= ble(true)) personally, though, since `$obj->{$method}(...$args)` could be u= sed.=0A= > I've only used this to access private and protected properties/methods= .=0A= =0A= Thanks,=0A= Tyson=