• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest [tweak] Allow setting error_reporting via config option

Mike Tougeron

Well-known member
#1
Would it be possible to have the error_reporting() level that are set in XenForo_Application::beginApplication() on line 188 be set via a config file setting? e.g.
$config['error_reporting'] = E_ALL | E_STRICT & ~8192;

While I am a huge fan of developing in E_STRICT mode, when in production I prefer to have the error_reporting() at a much more forgiving level. I have ini_set('display_errors', 0) of course, but I don't want the error handling to be triggered by an E_NOTICE. Currently I am changing this value in the index.php after XenForo_Application::initialize() is called, but it seems to make more sense as a config option, not custom code.

[edit]Or is this something you'd prefer that I just do: XenForo_Application::disablePhpErrorHandler() ?

Thanks,
Mike