";
}
}
/* Extract traceback data */
$trace= debug_backtrace();
/* Create error header */
$error_collector.= "
"._("PHP error")." \"$errstr\" |
";
/* Generate trace history */
for ($index= 1; $index":
$type= _("method");
break;
}
} else {
$type= "-";
}
$args= "";
foreach ($ct['args'] as $arg){
$args.= htmlentities("\"$arg\", ");
}
$args= preg_replace("/, $/", "", $args);
if ($args == ""){
$args= "-";
}
$file= $ct['file'];
$line= $ct['line'];
$color= ($index&1)?'#404040':'606060';
$error_collector.= ""._("Trace")."[$index]: $loc | ";
$error_collector.= ""._("File").": $file ("._('Line')." $line) | "._("Type").": $type |
";
$error_collector.= ""._("Arguments").": $args |
";
}
/* Close error table */
$error_collector.= "
";
/* Write to syslog */
gosa_log ("PHP error: $errstr ($errfile, line $errline)");
}
function dummy_error_handler()
{
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>