- Prestashop 8.2
- PHP 8.3
In my defines.inc.php I have:
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
/* Compatibility warning */
if (!defined('_PS_DISPLAY_COMPATIBILITY_WARNING_')) {
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
}
if (_PS_MODE_DEV_ === true) {
$errorReportingLevel = E_ALL | E_STRICT;
// if (_PS_DISPLAY_COMPATIBILITY_WARNING_ === false) {
$errorReportingLevel = $errorReportingLevel & ~E_DEPRECATED & ~E_USER_DEPRECATED;
// }
@ini_set('display_errors', 'on');
@error_reporting($errorReportingLevel);
define('_PS_DEBUG_SQL_', true);
@error_reporting(E_ERROR | E_WARNING | E_PARSE);
} else {
@ini_set('display_errors', 'off');
define('_PS_DEBUG_SQL_', false);
}
But I still get a lot of deprecated messages in the var/logs dev file
Then the __contruct method of my module I added:
error_log('[NICO] error_reporting = ' . error_reporting());
Then in my apache log I got:
[NICO] error_reporting = -1,
Which means the error_reporting is not defined in defines.inc.php.
Any idea?
It is a fresh install of PHP, without any module, except the one I try to develop.