示例#1
0
文件: Error.php 项目: Zunair/xataface
 public static function printStackTrace()
 {
     $debug = debug_backtrace();
     $out = "";
     foreach ($debug as $line) {
         $args = '';
         if (isset($line['args'])) {
             foreach ($line['args'] as $arg) {
                 $args .= substr(Dataface_Error::stringRepresentation($arg), 0, 100) . ',';
             }
         }
         $args = substr($args, 0, strlen($args) - 1);
         $out .= "On line " . @$line['line'] . " of file " . @$line['file'] . " in function " . @$line['function'] . "({$args})\n<br>";
     }
     return $out;
 }