rfc:deprecate-bareword-strings
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:deprecate-bareword-strings [2017/03/05 22:03] – flesh out important points, add links to implementation imsop | rfc:deprecate-bareword-strings [2017/03/22 22:23] – close voting; 41:0 :D imsop | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2017-03-05 | * Date: 2017-03-05 | ||
* Author: Rowan Collins rowan.collins@gmail.com | * Author: Rowan Collins rowan.collins@gmail.com | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 65: | Line 65: | ||
- In PHP 8.0, remove the fallback, and replace the '' | - In PHP 8.0, remove the fallback, and replace the '' | ||
- | It might seem surprising to raise an '' | + | ===== E_WARNING vs E_DEPRECATED ===== |
+ | |||
+ | It might seem surprising to raise an '' | ||
* If a user is relying on the fallback to string, we should communicate that this feature is officially deprecated and slated for removal. | * If a user is relying on the fallback to string, we should communicate that this feature is officially deprecated and slated for removal. | ||
Line 72: | Line 74: | ||
To make the message visible, we want to use an error level likely to be enabled both in development and production configurations. Since '' | To make the message visible, we want to use an error level likely to be enabled both in development and production configurations. Since '' | ||
- | This RFC therefore | + | This RFC takes the position that it is more likely that people will trigger this behaviour by mistake, so the priority is to make such a mistake obvious; thus '' |
+ | |||
+ | The proposed wording is also an attempt to balance these two possibilities. The use of parentheses is to avoid the awkward phrasing "in a future version of PHP in..." which would otherwise appear in the full output: | ||
+ | |||
+ | < | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 113: | Line 119: | ||
- | ===== Proposed | + | ===== Voting ===== |
- | A single yes/ | + | Voting opened on 2017-03-08, and will close on 2017-03-22 at 22:00 UTC |
+ | |||
+ | The vote requires | ||
+ | |||
+ | Voting is on the following proposal: | ||
+ | |||
+ | - In PHP 7.2, raise the severity of the message "Use of undefined constant" | ||
+ | - In PHP 8.0, remove the fallback, and replace the '' | ||
- | In PHP 7.2, replace the " | + | <doodle title=" |
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
rfc/deprecate-bareword-strings.txt · Last modified: 2018/03/01 23:25 by carusogabriel