thirdparty/htmlpurifier-4.0.0-lite/library/HTMLPurifier/Config.php
protected function triggerError($msg, $no) {
        // determine previous stack frame
        $backtrace = debug_backtrace();
        if ($this->chatty && isset($backtrace[1])) {
            $frame = $backtrace[1];
            $extra = " on line {$frame['line']} in file {$frame['file']}";
        } else {
            $extra = '';
        }
        trigger_error($msg . $extra, $no);
    }
protected function triggerError($msg, $no) {
        // determine previous stack frame
        $backtrace = debug_backtrace();
        if ($this->chatty && isset($backtrace[1])) {
            $frame = $backtrace[1];
            $extra = " on line {$frame['line']} in file {$frame['file']}";
        } else {
            $extra = '';
        }
        trigger_error($msg . $extra, $no);
    }
protected function triggerError ( $ msg , $ no ) { // determine previous stack frame $ backtrace = debug_backtrace ( ) ; if ( $ this -> chatty && isset ( $ backtrace [ 1 ] ) ) { $ frame = $ backtrace [ 1 ] ; $ extra = " on line {$frame['line']} in file {$frame['file']}" ; } else { $ extra = '' ; } trigger_error ( $ msg . $ extra , $ no ) ; }
Produces a nicely formatted error message by supplying the
stack frame information from two levels up and OUTSIDE of
HTMLPurifier_Config.
Produces a nicely formatted error message by supplying the stack frame information from two levels up and OUTSIDE of HTMLPurifier_Config .