mirror of
https://github.com/moodle/moodle.git
synced 2025-07-09 08:29:23 +02:00
$CFG->debugdisplay now controls PHP errors too
This commit is contained in:
@ -255,6 +255,15 @@ global $HTTPSPAGEREQUIRED;
|
|||||||
unset($originaldatabasedebug);
|
unset($originaldatabasedebug);
|
||||||
error_reporting($CFG->debug);
|
error_reporting($CFG->debug);
|
||||||
|
|
||||||
|
|
||||||
|
/// If we want to display Moodle errors, then try and set PHP errors to match
|
||||||
|
if (empty($CFG->debugdisplay)) {
|
||||||
|
@ini_set('display_errors', '0');
|
||||||
|
@ini_set('log_errors', '1');
|
||||||
|
} else {
|
||||||
|
@ini_set('display_errors', '1');
|
||||||
|
}
|
||||||
|
|
||||||
/// Shared-Memory cache init -- will set $MCACHE
|
/// Shared-Memory cache init -- will set $MCACHE
|
||||||
/// $MCACHE is a global object that offers at least add(), set() and delete()
|
/// $MCACHE is a global object that offers at least add(), set() and delete()
|
||||||
/// with similar semantics to the memcached PHP API http://php.net/memcache
|
/// with similar semantics to the memcached PHP API http://php.net/memcache
|
||||||
|
Reference in New Issue
Block a user