Skip to content

docs: add "Error Handling" in "Upgrading from 3.x to 4.x" #8350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions user_guide_src/source/installation/upgrade_4xx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,23 @@ Hooks
- The hook point ``post_system`` has moved just before sending the final rendered
page.

Error Handling
==============

- The behavior in CI4 has been slightly changed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At first glance, I don't quite understand it well. Can we make it in tabular form?


- In CI3, ignored errors by ``error_reporting()`` in **index.php** are not logged,
but other errors are logged (but depending on the ``log_threshold`` setting,
they may not be written to the log file). Only errors with the error level
``E_ERROR | E_PARSE | E_COMPILE_ERROR | E_CORE_ERROR | E_USER_ERROR``
will stop the framework processing, regardless of the error level set in
``error_reporting()``.
- In CI4, only errors with the error level set by ``error_reporting()`` in
**app/Config/Boot/{environment}.php** are logged (but depending on the
``Config\Logger::$threshold`` setting, they may not be written to the log file).
All errors that are not ignored by ``error_reporting()`` will stop the
framework processing.

Extending the Framework
=======================

Expand Down