src/wcmf/lib/core/ErrorHandler.php
public static function getStackTrace() {
    ob_start();
    debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
    $trace = ob_get_contents();
    ob_end_clean();

    // remove first item from backtrace as it's this function which is redundant.
    $trace = preg_replace('/^#0\s+'.__FUNCTION__."[^\n]*\n/", '', $trace, 1);

    return $trace;
  }
public static function getStackTrace() {
    ob_start();
    debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
    $trace = ob_get_contents();
    ob_end_clean();

    // remove first item from backtrace as it's this function which is redundant.
    $trace = preg_replace('/^#0\s+'.__FUNCTION__."[^\n]*\n/", '', $trace, 1);

    return $trace;
  }
public static function getStackTrace ( ) { ob_start ( ) ; debug_print_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS ) ; $ trace = ob_get_contents ( ) ; ob_end_clean ( ) ; // remove first item from backtrace as it's this function which is redundant. $ trace = preg_replace ( '/^#0\s+' . __FUNCTION__ . "[^\n]*\n/" , '' , $ trace , 1 ) ; return $ trace ; }
Get the stack trace
@return The stack trace as string
Get the stack trace