public static function getCLIBacktrace($backtrace=null) {
		if(!$backtrace)
			$backtrace = debug_backtrace();

		$r = '';
		$c = count($backtrace);
		for($i=0; $i<$c; $i++) {
			$trace = $backtrace[$i];

			if(isset($trace['file']))
				$r .= $trace['file'].':'.$trace['line']."\n";
		}

		return $r;
	}