X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions.inc;h=72bd6723f2092d9b0e4cc94c4bbc650b13f1facf;hb=be51930cd79f80d0bd75c1156c66c1c396a7b1d5;hp=45564fb24ef2e7b5b3ad40e476ada54dc4f05449;hpb=5a3494692c547ff250c297c566048bd6936a2c72;p=gosa.git diff --git a/include/functions.inc b/include/functions.inc index 45564fb24..72bd6723f 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1,7 +1,7 @@ "._("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); + $file= $ct['file']; + $line= $ct['line']; + $color= ($index&1)?'#452510':'351500'; + $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)"); +} + // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>