rfc:in_operator
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:in_operator [2015/02/26 19:40] – kelunik | rfc:in_operator [2015/03/15 19:26] – added voting period kelunik | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: In Operator ====== | ====== PHP RFC: In Operator ====== | ||
- | * Version: 0.4 | + | * Version: 0.5.1 |
- | * Date: 2015-02-26 | + | * Date: 2015-03-15 |
* Authors: Niklas Keller < | * Authors: Niklas Keller < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This RFC adds a new '' | + | This RFC adds a new '' |
+ | |||
+ | ===== Motivation ===== | ||
+ | Checking if a specific input in an allowed range of value is a very common check in web application, | ||
===== Proposal ===== | ===== Proposal ===== | ||
Line 39: | Line 42: | ||
</ | </ | ||
- | If '' | + | If '' |
<code php> | <code php> | ||
$contains = " | $contains = " | ||
$contains = " | $contains = " | ||
- | $contains = 0 in " | ||
- | $contains = 0 in 100; // true | ||
</ | </ | ||
- | **Note**: This is a difference compared to '' | + | Other expressions |
- | + | ||
- | Other values | + | |
- | + | ||
- | If '' | + | |
==== Why strict? ==== | ==== Why strict? ==== | ||
Line 66: | Line 64: | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | New reserved keyword '' | + | New reserved keyword '' |
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
Line 74: | Line 72: | ||
==== New Constants ==== | ==== New Constants ==== | ||
A '' | A '' | ||
- | |||
- | ===== Open Issues ===== | ||
- | None. | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
Line 84: | Line 79: | ||
</ | </ | ||
- | ===== Proposed Voting Choices | + | ===== Votes ===== |
- | Requires a 2/3 majority, | + | Requires a 2/3 majority. Even if it passes, it will //only// get merged if the [[rfc/ |
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | Voting started on 2015-03-15 and ends on 2015-03-29. | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
Line 94: | Line 96: | ||
===== Changelog ===== | ===== Changelog ===== | ||
+ | * v0.5: Removed integer support, so the strictness is consistent. | ||
* v0.4: Removed possibility to check multiple values using an array. | * v0.4: Removed possibility to check multiple values using an array. |
rfc/in_operator.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1