Changeset 2859 for trunk/include


Ignore:
Timestamp:
Nov 10, 2008, 11:15:04 AM (16 years ago)
Author:
grum
Message:

Add a new config value 'show_php_error' to allow debugging of RC to be easier.
See topic #99192 on the forum.

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/common.inc.php

    r2824 r2859  
    9393include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
    9494@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
     95
     96if(isset($conf['show_php_errors']) && !empty($conf['show_php_errors']))
     97{
     98  ini_set('error_reporting', $conf['show_php_errors']);
     99  ini_set('display_errors', true);
     100}
     101
    95102include(PHPWG_ROOT_PATH . 'include/constants.php');
    96103include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
  • trunk/include/config_default.inc.php

    r2803 r2859  
    441441// better performance.
    442442$conf['template_compile_check'] = true;
     443
     444// this permit to show the php errors reporting (see INI 'error_reporting'
     445// for possible values)
     446// gives an empty value '' to deactivate
     447$conf['show_php_errors'] = E_ALL;
    443448
    444449// +-----------------------------------------------------------------------+
Note: See TracChangeset for help on using the changeset viewer.