You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/general/configuration.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ The loaded environment variables are accessed using any of the following:
122
122
123
123
.. literalinclude:: configuration/005.php
124
124
125
-
.. warning:: Note that your settings from the **.env** file are added to Environment Variables. As a side effect, this means that if your CodeIgniter application is (for example) generating a ``var_dump($_ENV)`` or ``phpinfo()`` (for debugging or other valid reasons) **your secure credentials are publicly exposed**.
125
+
.. warning:: Note that your settings from the **.env** file are added to ``$_SERVER`` and ``$_ENV``. As a side effect, this means that if your CodeIgniter application is (for example) generating a ``var_dump($_ENV)`` or ``phpinfo()`` (for debugging or other valid reasons), or a detailed error report in the ``development`` environment is shown, **your secure credentials are publicly exposed**.
Copy file name to clipboardExpand all lines: user_guide_src/source/general/errors.rst
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,11 @@ Error Handling
3
3
##############
4
4
5
5
CodeIgniter builds error reporting into your system through Exceptions, both the `SPL collection <https://www.php.net/manual/en/spl.exceptions.php>`_, as
6
-
well as a few custom exceptions that are provided by the framework. Depending on your environment's setup,
6
+
well as a few exceptions that are provided by the framework.
7
+
8
+
Depending on your environment's setup,
7
9
the default action when an error or exception is thrown is to display a detailed error report unless the application
8
-
is running under the ``production`` environment. In this case, a more generic message is displayed to
10
+
is running under the ``production`` environment. In the ``production`` environment, a more generic message is displayed to
9
11
keep the best user experience for your users.
10
12
11
13
.. contents::
@@ -43,12 +45,19 @@ the error handler to function as normal, you can throw a new exception within th
43
45
Configuration
44
46
=============
45
47
46
-
By default, CodeIgniter will display all errors in the ``development`` and ``testing`` environments, and will not
48
+
Error Reporting
49
+
---------------
50
+
51
+
By default, CodeIgniter will display a detailed error report with all errors in the ``development`` and ``testing`` environments, and will not
47
52
display any errors in the ``production`` environment. You can change this by setting the ``CI_ENVIRONMENT`` variable
48
-
in the **.env** file.
53
+
in the :ref:`.env<dotenv-file>` file.
49
54
50
55
.. important:: Disabling error reporting DOES NOT stop logs from being written if there are errors.
51
56
57
+
.. warning:: Note that your settings from the **.env** file are added to ``$_SERVER``
58
+
and ``$_ENV``. As a side effect, this means that if the detailed error report
59
+
is displayed, **your secure credentials are publicly exposed**.
0 commit comments