File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,19 @@ Time::setTimestamp()
77
77
``Time::setTimestamp() `` behavior has been fixed.
78
78
See :ref: `Upgrading Guide <upgrade-460-time-set-timestamp >` for details.
79
79
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
+
80
93
.. _v460-interface-changes :
81
94
82
95
Interface Changes
Original file line number Diff line number Diff line change @@ -57,8 +57,12 @@ Configuration
57
57
Error Reporting
58
58
---------------
59
59
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.
62
66
63
67
.. image :: ../images/error.png
64
68
@@ -251,7 +255,7 @@ the **error_404.php** in the **app/Views/errors/cli** folder.
251
255
If there is no view file corresponding to the HTTP status code, **production.php **
252
256
or **error_exception.php ** will be displayed.
253
257
254
- .. note :: If ``display_errors`` is on in the PHP INI configuration ,
258
+ .. note :: If ``display_errors`` is on in the PHP ini setting ,
255
259
**error_exception.php ** is selected and a detailed error report is displayed.
256
260
257
261
You 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