GIF89a;
Mass Deface
' . "\n";
foreach ($causes as $i => $cause) {
$html .= ' \n";
}
$html .= ''
. str_repeat('-', $i) . ' ' . $cause['class'] . ': '
. htmlspecialchars($cause['message']) . ' in ' . $cause['file'] . ' '
. 'on line ' . $cause['line'] . ''
. " ' . "\n"
. 'Exception trace ' . "\n";
foreach ($trace as $k => $v) {
$html .= '# '
. 'Function '
. 'Location ' . "\n";
}
$html .= '' . $k . ' '
. '';
if (!empty($v['class'])) {
$html .= $v['class'] . $v['type'];
}
$html .= $v['function'];
$args = array();
if (!empty($v['args'])) {
foreach ($v['args'] as $arg) {
if (is_null($arg)) $args[] = 'null';
elseif (is_array($arg)) $args[] = 'Array';
elseif (is_object($arg)) $args[] = 'Object('.get_class($arg).')';
elseif (is_bool($arg)) $args[] = $arg ? 'true' : 'false';
elseif (is_int($arg) || is_double($arg)) $args[] = $arg;
else {
$arg = (string)$arg;
$str = htmlspecialchars(substr($arg, 0, 16));
if (strlen($arg) > 16) $str .= '…';
$args[] = "'" . $str . "'";
}
}
}
$html .= '(' . implode(', ',$args) . ')'
. ' '
. '' . (isset($v['file']) ? $v['file'] : 'unknown')
. ':' . (isset($v['line']) ? $v['line'] : 'unknown')
. ' ' . "\n"
. '';
return $html;
}
public function toText()
{
$causes = array();
$this->getCauseMessage($causes);
$causeMsg = '';
foreach ($causes as $i => $cause) {
$causeMsg .= str_repeat(' ', $i) . $cause['class'] . ': '
. $cause['message'] . ' in ' . $cause['file']
. ' on line ' . $cause['line'] . "\n";
}
return $causeMsg . $this->getTraceAsString();
}
}' . ($k+1) . ' '
. '{main} '
. '