Skip to content

Commit f06395c

Browse files
authored
Merge pull request #8350 from kenjis/docs-upgrade_4x-error-handling
docs: add "Error Handling" in "Upgrading from 3.x to 4.x"
2 parents 034379c + 5b142ff commit f06395c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,28 @@ 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 the behavior is set in the **index.php** file:
174+
175+
- errors with the error level set by ``error_reporting()`` are logged (but
176+
depending on the ``log_threshold`` setting, they may not be written to
177+
the log file).
178+
- errors with an error level of
179+
``E_ERROR | E_PARSE | E_COMPILE_ERROR | E_CORE_ERROR | E_USER_ERROR``
180+
stopped framework processing, regardless of the error level set in
181+
``error_reporting()``.
182+
- In CI4, the behavior is set in the **app/Config/Boot/{environment}.php** file:
183+
184+
- errors with the error level set by ``error_reporting()`` are logged (but
185+
depending on the ``Config\Logger::$threshold`` setting, they may not be
186+
written to the log file).
187+
- all errors that are not ignored by ``error_reporting()`` will stop the
188+
framework processing.
189+
168190
Extending the Framework
169191
=======================
170192

0 commit comments

Comments
 (0)