mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
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:
commit
f9679ec86e
@ -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);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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``.
|
||||
|
Loading…
x
Reference in New Issue
Block a user