X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fphp_setup.inc;h=2024321f3e6371307b6ba27898bc10026bc9103b;hb=198fc11cacca32ca2c0dc33505bde39a38b999e6;hp=aa69f7eaa6536ea0242600fffff5099a7d8ff198;hpb=a81339a2dd9ee13b32324ead39582628d42d3298;p=gosa.git diff --git a/gosa-core/include/php_setup.inc b/gosa-core/include/php_setup.inc index aa69f7eaa..2024321f3 100644 --- a/gosa-core/include/php_setup.inc +++ b/gosa-core/include/php_setup.inc @@ -29,7 +29,10 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) // To avoid recursion - restore original error handler. restore_error_handler(); - /* Return if error reporting is set to zero */ + /* Return if error reporting is set to zero + * Also exclude statements prefixed with @ - Comment out the block below to see suppressed errors. + * e.g. @call_function_but_hide_errors() + */ if (error_reporting() == 0){ set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ; return; @@ -50,7 +53,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) } /* Error messages are hidden in GOsa, so we only send them to the logging class and abort here */ - if(isset($config->data) && $config->get_cfg_value("displayerrors") != "true"){ + if(isset($config->data) && $config->get_cfg_value("core","displayErrors") != "true"){ /* Write to syslog */ if(class_exists("log") && !preg_match("/No such object/",$errstr)){ @@ -91,28 +94,22 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) if (session::is_set('js') && session::get('js')==FALSE){ $error_collector= "
- |
-
-
- ![]() |
- - + | ".image('images/toolbar-warning.png')." | +"._("Generating this page caused the PHP interpreter to raise some errors!")." | ++ + ".image('images/mailto.png')." "._("Send bugreport")." + + | ++ |