File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,6 +77,19 @@ Time::setTimestamp()
7777``Time::setTimestamp() `` behavior has been fixed.
7878See :ref: `Upgrading Guide <upgrade-460-time-set-timestamp >` for details.
7979
80+ Error Reporting to Non-HTML Requests
81+ ------------------------------------
82+
83+ In previous versions, when a request does not accept HTML, CodeIgniter showed
84+ error details only in the ``development `` and ``testing `` environments.
85+
86+ But because it is not possible to display error details when using a custom
87+ environment, this behavior has been fixed so that error details are displayed if
88+ ``display_errors `` in PHP ini setting is enabled.
89+
90+ With this fix, the error details are now displayed under the same conditions for
91+ both HTML requests and non-HTML requests.
92+
8093.. _v460-interface-changes :
8194
8295Interface Changes
Original file line number Diff line number Diff line change @@ -57,8 +57,12 @@ Configuration
5757Error Reporting
5858---------------
5959
60- By default, CodeIgniter will display a detailed error report with all errors in the ``development `` and ``testing `` environments, and will not
61- display any errors in the ``production `` environment.
60+ When ``display_errors `` in PHP ini setting is enabled, CodeIgniter will display
61+ a detailed error report with all errors
62+
63+ So by default, CodeIgniter will display a detailed error report in the ``development ``
64+ and ``testing `` environments, and will not display any errors in the ``production ``
65+ environment.
6266
6367.. image :: ../images/error.png
6468
@@ -251,7 +255,7 @@ the **error_404.php** in the **app/Views/errors/cli** folder.
251255If there is no view file corresponding to the HTTP status code, **production.php **
252256or **error_exception.php ** will be displayed.
253257
254- .. note :: If ``display_errors`` is on in the PHP INI configuration ,
258+ .. note :: If ``display_errors`` is on in the PHP ini setting ,
255259 **error_exception.php ** is selected and a detailed error report is displayed.
256260
257261You should customize all of the error views in the **app/Views/errors/html ** folder
You can’t perform that action at this time.
0 commit comments