Merge pull request #8219 from kenjis/change-error_reporting-in-production

config: change the default error reporting level in production
This commit is contained in:
kenjis 2023-12-03 17:32:22 +09:00 committed by GitHub
commit f9679ec86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -9,8 +9,10 @@
|
| If you set 'display_errors' to '1', CI4's detailed error report will show.
*/
error_reporting(E_ALL & ~E_DEPRECATED);
// If you want to suppress more types of errors.
// error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
ini_set('display_errors', '0');
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
/*
|--------------------------------------------------------------------------

View File

@ -315,6 +315,9 @@ Changes
- **Config:**
- ``Config\Feature::$multipleFilters`` has been removed, because now
:ref:`multiple-filters` are always enabled.
- The default error level in the production environment
(**app/Config/Boot/production.php**) has been changed to ``E_ALL & ~E_DEPRECATED``
to match the default **php.ini** for production.
- **RouteCollection:** The HTTP method keys in the protected property ``$routes``
has been fixed from lowercase to uppercase.

View File

@ -255,6 +255,8 @@ The ``'toolbar'`` in the ``$global['after']`` was removed.
Others
^^^^^^
- app/Config/Boot/production.php
- The default error level to ``error_reporting()`` has been changed to ``E_ALL & ~E_DEPRECATED``.
- app/Config/Database.php
- The default value of ``charset`` in ``$default`` has been change to ``utf8mb4``.
- The default value of ``DBCollat`` in ``$default`` has been change to ``utf8mb4_general_ci``.