Platform check: Trigger native PHP error #9414
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following up #9412 and #9410 I found current error handling with mechanism
header(); echo …; die(1+);is not satisfied for success debugging on most implementations.General monitoring tools prefers to monitor native error log instead to parsing response body (tested on Google App Engine and Google Run).
Here are two reasons:
This PR is replacement to #9410 and it's conflicts with them. Only one can be merged, I prefer this PR.
FAQ
This PR is cause to show empty page without body.
That's right. I understand it's unpleasantly. This is standard way to propagate raw errors. User can change this behavior by setting php runtime like:
or by custom error handling.