rfc:datetime-exceptions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:datetime-exceptions [2022/12/08 11:11] – Removed a BC line, as Tim says "the BC section "warning for broken serialisation data becomes a new Error" – this is not a new Error, this is unchanged. In fact ext/date was my example of choice for my RFC: 3v4l.org/7HsR9" derick | rfc:datetime-exceptions [2023/02/08 10:43] (current) – Mark as implemented derick | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: More Appropriate Date/Time Exceptions ====== | ====== PHP RFC: More Appropriate Date/Time Exceptions ====== | ||
- | * Version: 0.9 | + | * Version: 0.9.1 |
- | * Date: 2022-11-29 | + | * Date: 2022-12-15 (First created: 2022-11-29) |
* Author: Derick Rethans < | * Author: Derick Rethans < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 13: | Line 13: | ||
Right now, they are either warnings/ | Right now, they are either warnings/ | ||
+ | Out of scope of this RFC is changing and improving warning, Error, and Exception messages. | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | The proposals | + | The proposal |
The rationale behind all of these is the following: | The rationale behind all of these is the following: | ||
Line 35: | Line 36: | ||
* Error | * Error | ||
* ''" | * ''" | ||
- | * ''" | + | * ''" |
- | * ''" | + | * ''" |
- | * ''" | + | * ''" |
- | * ''" | + | * ''" |
* ''" | * ''" | ||
* ''" | * ''" | ||
Line 79: | Line 80: | ||
* ''" | * ''" | ||
- | Procedural style use of date/time functions | + | Procedural style use of date/time functions |
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 101: | Line 102: | ||
===== Unaffected PHP Functionality ===== | ===== Unaffected PHP Functionality ===== | ||
- | Warnings and errors that are currently generated by the procedural versions of the Date/Time functionality | + | Warnings and errors that are currently generated by the procedural versions of the Date/Time functionality |
- | ===== Proposed | + | ===== Voting ===== |
- | Either for, or against. | + | To accept this RFC, and get more appropriate exceptions: |
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | Vote started December 15th, and runs until December 31st, 24:00 UTC. | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
Line 112: | Line 120: | ||
===== Implementation ===== | ===== Implementation ===== | ||
- | After the project is implemented, | + | |
- | - the version(s) it was merged into | + | - Version: PHP 8.3 |
- | - a link to the git commit(s) | + | - Commit: https:// |
- | - a link to the PHP manual entry for the feature | + | |
- | - a link to the language specification section (if any) | + | |
===== Rejected Features ===== | ===== Rejected Features ===== | ||
None yet. | None yet. | ||
+ | |||
+ | ===== ChangeLog ===== | ||
+ | |||
+ | 0.9.1 | ||
+ | * Clarified that changing/ | ||
+ | * Clarified that the " | ||
rfc/datetime-exceptions.txt · Last modified: 2023/02/08 10:43 by derick