static function warning($name, $code, $msg) { self::$checkpoints[] = array('name' => $name, 'time' => self::microtime(), 'memory' => memory_get_usage(), 'included_files' => count(get_included_files()), 'queries' => count(self::$queries), 'msg' => $msg, 'code' => $code, 'type' => 'warning'); self::$_is_error = true; }