rfc:objkey
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:objkey [2014/10/27 01:49] – stas | rfc:objkey [2014/12/17 20:34] – Vote Vote ajf | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2014-10-26 | * Date: 2014-10-26 | ||
* Author: Stas Malyshev (stas@php.net), | * Author: Stas Malyshev (stas@php.net), | ||
- | * Status: In Discussion | + | * Status: In Voting |
* First Published at: http:// | * First Published at: http:// | ||
Line 104: | Line 104: | ||
Since objects are run-time, should not have any effects on opcache. | Since objects are run-time, should not have any effects on opcache. | ||
- | ==== New Constants ==== | ||
- | |||
- | None. | ||
- | |||
- | ==== php.ini Defaults ==== | ||
- | |||
- | None. | ||
===== Open Issues ===== | ===== Open Issues ===== | ||
Line 116: | Line 109: | ||
- Should SplFixedArray support object indexes? | - Should SplFixedArray support object indexes? | ||
- Should SplObjectStorage support calling %%__hash%% for an object if it exists? | - Should SplObjectStorage support calling %%__hash%% for an object if it exists? | ||
- | - Should this be supported for strings? I don't think it makes much sense but mentioning it here for completeness sake. | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
+ | |||
+ | New magic method requires 2/3 majority. The vote also includes choice for the name - %%__hash%% or %%__toKey%%. Vote for either is counted as the vote for the proposal. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes, via method __hash | ||
+ | * Yes, via method __toKey | ||
+ | * No | ||
+ | </ | ||
- | New magic method requires 2/3 majority. We may also have choices on if we want to name it %%__hash%% or %%__toKey%% or something else. | + | The vote runs from December 16, 2014 to the end of day (PDT) January 6, 2015. |
===== Implementation ===== | ===== Implementation ===== | ||
Line 133: | Line 133: | ||
===== Rejected Features ===== | ===== Rejected Features ===== | ||
- | Using %%__toString%% | + | |
+ | - Supporting the use of objects for string indexes |
rfc/objkey.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1