"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

NormalizerFormatter.php  (phplist-3.4.5.tgz):NormalizerFormatter.php  (phplist-3.4.6.tgz)
skipping to change at line 154 skipping to change at line 154
if (isset($e->detail)) { if (isset($e->detail)) {
$data['detail'] = $e->detail; $data['detail'] = $e->detail;
} }
} }
$trace = $e->getTrace(); $trace = $e->getTrace();
foreach ($trace as $frame) { foreach ($trace as $frame) {
if (isset($frame['file'])) { if (isset($frame['file'])) {
$data['trace'][] = $frame['file'].':'.$frame['line']; $data['trace'][] = $frame['file'].':'.$frame['line'];
} elseif (isset($frame['function']) && $frame['function'] === '{clos
ure}') {
// Simplify closures handling
$data['trace'][] = $frame['function'];
} else {
if (isset($frame['args'])) {
// Make sure that objects present as arguments are not seria
lized nicely but rather only
// as a class name to avoid any unexpected leak of sensitive
information
$frame['args'] = array_map(function ($arg) {
if (is_object($arg) && !($arg instanceof \DateTime || $a
rg instanceof \DateTimeInterface)) {
return sprintf("[object] (%s)", Utils::getClass($arg
));
}
return $arg;
}, $frame['args']);
}
// We should again normalize the frames, because it might contai
n invalid items
$data['trace'][] = $this->toJson($this->normalize($frame), true)
;
} }
} }
if ($previous = $e->getPrevious()) { if ($previous = $e->getPrevious()) {
$data['previous'] = $this->normalizeException($previous); $data['previous'] = $this->normalizeException($previous);
} }
return $data; return $data;
} }
 End of changes. 1 change blocks. 
24 lines changed or deleted 0 lines changed or added

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