rfc:implement-strrstr-for-consistency
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:implement-strrstr-for-consistency [2019/06/20 02:36] – created girgias | rfc:implement-strrstr-for-consistency [2019/07/03 10:11] (current) – girgias | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2019-06-20 | * Date: 2019-06-20 | ||
* Author: George Peter Banyard < | * Author: George Peter Banyard < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | Implement strrstr (and possibly strristr) for consistency with other string functions | + | Implement |
+ | |||
+ | |||
+ | Currently there exist no " | ||
+ | There exist < | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Currently there exist no " | + | Implement < |
- | There exist strrchr however it does not have the same signature | + | |
===== Pros ===== | ===== Pros ===== | ||
- | * Consistency within the standard library | + | |
- | * Feature built-in to the language | + | * Feature built-in to the language |
===== Cons ===== | ===== Cons ===== | ||
- | * More " | + | |
- | * Follows an old naming scheme | + | * Follows an old naming scheme |
- | * Adds a function alias to the language | + | * Adds a function alias to the language |
- | | + | * Easily |
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 31: | Line 35: | ||
===== Open Issues ===== | ===== Open Issues ===== | ||
How to handle the newly created alias. | How to handle the newly created alias. | ||
- | |||
- | ===== Unaffected PHP Functionality ===== | ||
- | List existing areas/ | ||
- | |||
- | This helps avoid any ambiguity, shows that you have thought deeply about the RFC's impact, and helps reduces mail list noise. | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | 2/3 Majority for adding strrstr (and possibly strristr after discussion). | + | 2/3 Majority for adding |
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | Links to any external patches and tests go here. | + | GitHub PR [[https:// |
- | + | ||
- | If there is no patch, make it clear who will create a patch, or whether a volunteer to help with implementation is needed. | + | |
- | + | ||
- | Make it clear if the patch is intended to be the final patch, or is just a prototype. | + | |
- | + | ||
- | For changes affecting the core language, you should also provide a patch for the language specification. | + | |
===== Implementation ===== | ===== Implementation ===== | ||
Line 57: | Line 50: | ||
===== References ===== | ===== References ===== | ||
- | Links to external references, discussions or RFCs | + | Announcement on internals: [[https:// |
- | ===== Rejected Features ===== | ||
- | Keep this updated with features that were discussed on the mail lists. |
rfc/implement-strrstr-for-consistency.txt · Last modified: 2019/07/03 10:11 by girgias