"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Error/BaseErrorHandler.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

BaseErrorHandler.php  (cakephp-4.0.1):BaseErrorHandler.php  (cakephp-4.0.2)
skipping to change at line 171 skipping to change at line 171
'level' => $log, 'level' => $log,
'code' => $code, 'code' => $code,
'error' => $error, 'error' => $error,
'description' => $description, 'description' => $description,
'file' => $file, 'file' => $file,
'line' => $line, 'line' => $line,
]; ];
$debug = Configure::read('debug'); $debug = Configure::read('debug');
if ($debug) { if ($debug) {
// By default trim 3 frames off for the public and protected methods
// used by ErrorHandler instances.
$start = 3;
// Can be used by error handlers that wrap other error handlers
// to coerce the generated stack trace to the correct point.
if (isset($context['_trace_frame_offset'])) {
$start += $context['_trace_frame_offset'];
unset($context['_trace_frame_offset']);
}
$data += [ $data += [
'context' => $context, 'context' => $context,
'start' => 3, 'start' => $start,
'path' => Debugger::trimPath((string)$file), 'path' => Debugger::trimPath((string)$file),
]; ];
} }
$this->_displayError($data, $debug); $this->_displayError($data, $debug);
$this->_logError($log, $data); $this->_logError($log, $data);
return true; return true;
} }
/** /**
 End of changes. 2 change blocks. 
1 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)