Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114841 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38715 invoked from network); 13 Jun 2021 16:28:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Jun 2021 16:28:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3D22A1804D1 for ; Sun, 13 Jun 2021 09:44:42 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 ; Sun, 13 Jun 2021 09:44:41 -0700 (PDT) Received: by mail-ot1-f50.google.com with SMTP id w22-20020a0568304116b02904060c6415c7so6146324ott.1 for ; Sun, 13 Jun 2021 09:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qqcheBAA5gUa6KvgAQAle0tAb1tSZA6lNFeiCClo8/o=; b=HDHa2wNs3tY1KLrDfbihbqpdxiT6Fw12KJ8lsg9vaLW3nbT5Bouy0BolF1U8gSu/LR 1xqQqTCfP45gIpCSKdlhhgW7lOZjjiX+qCySELcwK2qzoa1TA6+JE64qygYcraxWrVaq 0B7fiUNMOv8jkxwM+G3L4wHsGQPbQu18W1peaoEMbn7xjpSEkAO5ThXh3bFbaZO7Opv9 gIgNduoGAn6CtTchB1G2flsN3MeHD3bjDeshcSkk+YhPKc26q86uM4rL+V4kjfnqALV/ YOvLxECJ2DNWaOvfMcdlQg8eDQ864YIC8UgLFbQWPC7FJZM9LS4c5lVWCYaFh0atZLH3 o6Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qqcheBAA5gUa6KvgAQAle0tAb1tSZA6lNFeiCClo8/o=; b=mh4M3hMDAqom9HbIJtyEEu/pb8G0pjnEtKuIjU9zgYXuvQ8qPODs20b0tm3Yo5KwWn nFKpecGHD6qkKx7elGyi+xpEGOv+InJ8oeARzXgxSVODm8IwKen45dDsE7iX5NNlEirO KRL5ex7m8I4myRFNRAnQMw0W6buEqJ0sWDH6/1xgzZa6e06oZ6lbS2KEeMluM99d4pqn rbEYhl00vMTN7NBMNGGDaJ/TbkLTza4XroHW9MQHYN5q1PFKjm8KE4ZAnRASnquC/Nc/ aIbie8QM/HrsSWuRo14tdFJUBgsLEa7uyWbXamg22OtSCC0kzRVRsi/uzIzWVyvm6PI1 k7MQ== X-Gm-Message-State: AOAM530haaZ7U5OwcfL2X2rgN9rSR65fA7WQA4no40ssVPhpHOPlCTFV mEMNKSlk0Gv9hNubpxpBQmkFIkOOlX4Fg1SeXkkDv5bSGuAM2Q== X-Google-Smtp-Source: ABdhPJzvoedRySP6oPfWr3dZO0XImvtAPJ/gkdFyAfklb94yPOBu3RgZoTINZdimilX7GudC4+jgKTkmHN3b7t58KWk= X-Received: by 2002:a05:6830:2ea:: with SMTP id r10mr10578652ote.264.1623602679759; Sun, 13 Jun 2021 09:44:39 -0700 (PDT) MIME-Version: 1.0 Date: Sun, 13 Jun 2021 18:44:29 +0200 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000fbc49a05c4a87462" Subject: [RFC] make Reflection*#setAccessible() no-op From: ocramius@gmail.com (Marco Pivetta) --000000000000fbc49a05c4a87462 Content-Type: text/plain; charset="UTF-8" Hey folks, I'm posting here to introduce a new simplification, as well as quality-of-life-improving RFC: https://wiki.php.net/rfc/make-reflection-setaccessible-no-op The RFC is quite minimal, and proposes removing any runtime behavior from `ReflectionMethod#setAccessible()` and `ReflectionProperty#setAccessible()`, making `ReflectionMethod` and `ReflectionProperty` accessible by default. The rationale is: * this API is probably coming from a copy-pasted java-ism (although I couldn't verify that, so I did not factor it into the RFC) * removes the last bit of mutable state from `ReflectionProperty` and `ReflectionMethod` * simplifies usage of the API * if I'm up to no good, I don't need to actually solemnly swear that i am up to no good (that's stuff for fantasy books) I don't really know what the deadline for 8.1 features is, but I assume it's coming up quite quickly, so friendly NikiC poked me to see if this long-standing patch of mine was still relevant. Should be short/sweet, but I'm looking forward to your feedback. Greets, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --000000000000fbc49a05c4a87462--