rfc:make-reflection-setaccessible-no-op
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:make-reflection-setaccessible-no-op [2021/06/13 16:17] – Added initial proposal and explained why the current API is wasteful ocramius | rfc:make-reflection-setaccessible-no-op [2021/07/08 08:57] (current) – nikic | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP RFC: # | + | ====== PHP RFC: Make reflection setAccessible() no-op ====== |
* Version: 1.0 | * Version: 1.0 | ||
* Date: 2021-06-13 | * Date: 2021-06-13 | ||
* Author: Marco Pivetta | * Author: Marco Pivetta | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 79: | Line 79: | ||
* make `ReflectionProperty# | * make `ReflectionProperty# | ||
+ | After the RFC is successfully accepted/ | ||
+ | <code php> | ||
+ | class Foo { private $bar = ' | ||
+ | |||
+ | (new ReflectionProperty(Foo:: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== Deprecations ==== | ||
+ | |||
+ | In order to ease migration to PHP 8.1, and minimize runtime side-effects, | ||
+ | |||
+ | Instead, a deprecation should be introduced when a new/ | ||
+ | |||
+ | Such RFC will be raised **after** the release of PHP 8.1, if this RFC is accepted. | ||
+ | |||
+ | ===== Backward Incompatible Changes ===== | ||
+ | |||
+ | Although of minimal concern, it is true that some behavior will change: | ||
+ | |||
+ | * `ReflectionProperty# | ||
+ | * `ReflectionProperty# | ||
+ | * `ReflectionMethod# | ||
+ | * `ReflectionMethod# | ||
+ | * for extensions developers, `reflection_object-> | ||
+ | |||
+ | ===== Proposed PHP Version(s) ===== | ||
+ | |||
+ | 8.1 | ||
+ | |||
+ | ===== RFC Impact ===== | ||
+ | ==== To SAPIs ==== | ||
+ | None | ||
+ | |||
+ | ==== To Existing Extensions ==== | ||
+ | None | ||
+ | |||
+ | ==== To Opcache ==== | ||
+ | |||
+ | None | ||
+ | |||
+ | ==== New Constants ==== | ||
+ | |||
+ | None | ||
+ | |||
+ | ==== php.ini Defaults ==== | ||
+ | |||
+ | None | ||
+ | |||
+ | ===== Open Issues ===== | ||
+ | |||
+ | None | ||
+ | |||
+ | ===== Proposed Voting Choices ===== | ||
+ | |||
+ | Accept turning `ReflectionProperty# | ||
+ | |||
+ | ===== Patches and Tests ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | ===== Vote ===== | ||
+ | |||
+ | This is a Yes/No vote, requiring a 2/3 majority. Voting started on 2021-06-23 and ends on 2021-07-07. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ |
rfc/make-reflection-setaccessible-no-op.txt · Last modified: 2021/07/08 08:57 by nikic