rfc:error_backtraces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:error_backtraces [2020/05/28 20:09] – ++ maxsem | rfc:error_backtraces [2022/04/17 18:30] (current) – Move to inactive ilutov | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP RFC: Your Title Here ====== | + | ====== PHP RFC: Error backtraces |
* Version: 1.0 | * Version: 1.0 | ||
* Date: 2020-05-25 | * Date: 2020-05-25 | ||
* Author: Max Semenik, maxsem.wiki@gmail.com | * Author: Max Semenik, maxsem.wiki@gmail.com | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 12: | Line 12: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Introduce a new INI setting, '' | + | Add backtraces |
**Error output**: traces will be formatted exactly like for exceptions, and appended to error messages, e.g.: | **Error output**: traces will be formatted exactly like for exceptions, and appended to error messages, e.g.: | ||
Line 22: | Line 22: | ||
#3 {main} | #3 {main} | ||
</ | </ | ||
+ | |||
+ | **Logging**: | ||
**'' | **'' | ||
Line 40: | Line 42: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | **Configuration**: | ||
+ | * 0 - no backtraces | ||
+ | * positive number - output this number of frames | ||
+ | * negative value - no limit | ||
+ | By default it would be on in development settings but off in production. | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | Everything will behave exactly as before with backtraces disabled, while turning them on would introduce a few minor changes to how errors are represented. Should not be a problem. | + | * In the current proposed implementation, |
+ | * From the userspace POV, everything will behave exactly as before with backtraces disabled, while turning them on would introduce a few minor changes to how errors are represented. | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
8.0 | 8.0 | ||
- | ==== php.ini Defaults ==== | + | ===== php.ini Defaults |
For '' | For '' | ||
* Default value: 0 | * Default value: 0 | ||
Line 63: | Line 72: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Accept this RFC (yes/no)? | + | * Accept this RFC (yes/no)? |
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | * WIP patch: | + | * WIP patch: |
===== References ===== | ===== References ===== |
rfc/error_backtraces.txt · Last modified: 2022/04/17 18:30 by ilutov