getError() public static method

public static getError ( $backtrace, $e = null ) : string
return string
Esempio n. 1
0
 public static function error_handler($errno, $errstr, $errfile, $errline)
 {
     $log = SError::getError(debug_backtrace());
     if (SError::$CONSOLE) {
         echo $log;
     }
     if (SError::$LOG) {
         if (!empty(SError::$LOGFILE)) {
             error_log($log, 3, SError::$LOGFILE);
         } else {
             error_log($log);
         }
     }
 }