Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115351 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75893 invoked from network); 7 Jul 2021 13:38:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Jul 2021 13:38:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 53F891804B0 for ; Wed, 7 Jul 2021 07:00:25 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 7 Jul 2021 07:00:24 -0700 (PDT) Received: by mail-oi1-f179.google.com with SMTP id s24so3480206oiw.2 for ; Wed, 07 Jul 2021 07:00:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PolSBMWQ0Bwr81HPt1xe5eDLgsrxl3h9G8eKyVAoO6k=; b=I2LRtzcto+bvZ5avNn5HPJjqhtCm+XYV/3WgTJjTS/yzot7quvPc8nSAcOIbwd4KL1 NwjK0tME4kmbOV2E9mL6eLsyEQjNs5C4HkQBwP6fNRDnMhO3U3TTS6yg0wHOIOVIQO7H sRUWfOpngxKVQRFSoDUFmWZjyJEfYQZ3tckU/Ia3/ZY1Ydokvm1H29ki1R5ALMLFhC6T 9VD0bz4MJN1Ui1slMlJZmJA9b2k8iTemMhuKxB9IJxg19adyBHcDTIIRlpU2IuyV/G/B PgWe147X5XvWmBmCUGuM8cW4PUHpuKrz7loUNAcXvfzRwiND2Ti3W9QlAlo7SNmEhDUR MelQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PolSBMWQ0Bwr81HPt1xe5eDLgsrxl3h9G8eKyVAoO6k=; b=J+7bdrf/P+jv/BVHHq6UJLE8hvj68TuLFpjB+p47wGRQzaSGWDwAa2T/QT2xDX9U31 DpjszbKthVZCXBtchYnWmcy6/8mkGWw0zW4AvSjUAfwJmJXNgHqoNoJ5MJdT1p5HtmmU NlpX2irk2/kyukzEL+VyC18ObUmD5E1pG9JNLYx80g97A6G3nQf+LPu2bgk5e/7xIj6D LtGIK7pYlChH9SqGQ+vJvDczqgkPCu/kMkmNaSGj36FYUlaVTYtv2Xg5xef71CRcE1WT jg3j1j8zq5WCo9Nr4LvUhyxQLZFb9eLdn2MejHoD0blbVQu6CMSdUFdo8pn4TiiQC0VA XMXw== X-Gm-Message-State: AOAM530R+gD4VdggtbzHMVlImfmVYTMnQrFR89SE6twYBoFbFVSGz++U +z6OMUPaEWV/03Id0CxJ1aBXjgNGma8TfVRtnWU= X-Google-Smtp-Source: ABdhPJwPlpKJscqwK2IFuMsmVH9BS89mcll6SGw+2KLDamZf1pFv/g/g5OQ7S2iopStMVQlwaPjDakIC/CE3ZJSQU/0= X-Received: by 2002:a05:6808:d8:: with SMTP id t24mr4709338oic.105.1625666423469; Wed, 07 Jul 2021 07:00:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 7 Jul 2021 16:00:11 +0200 Message-ID: To: tyson andre Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000b1baf805c688f5fd" Subject: Re: [PHP-DEV] [Vote] make Reflection*#setAccessible() no-op From: ocramius@gmail.com (Marco Pivetta) --000000000000b1baf805c688f5fd Content-Type: text/plain; charset="UTF-8" Hey y'all, I'm closing the vote for making `Reflection*#setAccessible()` no-op. The result is a unanimous 31 votes **for** the change to be included in PHP 8.1: I will clean up https://github.com/php/php-src/pull/5412 and get it ready for merge :-) @Tyson sorry, I really forgot to update the RFC with any further feedback there, and only checked again today as per a calendar entry I created for this. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Thu, Jun 24, 2021 at 1:20 AM tyson andre wrote: > Mi Marco Pivetta, > > > I'm opening the vote for making `Reflection*#setAccessible()`. > > > > Voting starts today (2021-06-23) and ends in 14 days (2021-07-07). > > > > Vote at https://wiki.php.net/rfc/make-reflection-setaccessible-no-op > > > > Discussion: https://marc.info/?l=php-internals&m=162360269505048&w=2 > > > > Discussion^2: https://externals.io/message/114841 > > I'm in favor of this even without adding isAccessible(), > but just to note: > > https://wiki.php.net/rfc/howto mentions: > > > Listen to the feedback, and try to answer/resolve all questions. > > **Update your RFC to document all the issues and discussions. > > Cover both the positive and negative arguments.** Put the RFC URL into > all your replies. > > 1. This should probably link to the RFC discussions in a References > section, > not everyone who votes reads the mailing list. > 2. https://externals.io/message/114841#114845 is the only thing that > resembled an objection for a "Discussion" > section or future scope, though > > > I think that isAccessible should be added if any applications > actually did depend on ReflectionException > > being thrown for correctness - they could throw their own exception > if isAccessible was false. > > (e.g. for code meant to handle possibly undefined public typed > properties by checking for initialization > > then getting the value) > > > > I can't actually remember needing this (anything other than > setAccessible(true)) personally, though, since `$obj->{$method}(...$args)` > could be used. > > I've only used this to access private and protected > properties/methods. > > Thanks, > Tyson > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000b1baf805c688f5fd--