Skip to content

Commit 12a8c6e

Browse files
committed
docs: add "Error Handling" in "Upgrading from 3.x to 4.x"
1 parent 4433c90 commit 12a8c6e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,23 @@ Hooks
165165
- The hook point ``post_system`` has moved just before sending the final rendered
166166
page.
167167

168+
Error Handling
169+
==============
170+
171+
- The behavior in CI4 has been slightly changed.
172+
173+
- In CI3, ignored errors by ``error_reporting()`` in **index.php** are not logged,
174+
but other errors are logged (but depending on the ``log_threshold`` setting,
175+
they may not be written to the log file). Only errors with the error level
176+
``E_ERROR | E_PARSE | E_COMPILE_ERROR | E_CORE_ERROR | E_USER_ERROR``
177+
will stop the framework processing, regardless of the error level set in
178+
``error_reporting()``.
179+
- In CI4, only errors with the error level set by ``error_reporting()`` in
180+
**app/Config/Boot/{environment}.php** are logged (but depending on the
181+
``Config\Logger::$threshold`` setting, they may not be written to the log file).
182+
All errors that are not ignored by ``error_reporting()`` will stop the
183+
framework processing.
184+
168185
Extending the Framework
169186
=======================
170187

0 commit comments

Comments
 (0)