PDO::ERRMODE_EXCEPTION]); $db->exec('START TRANSACTION READ ONLY'); $rows = $db->query('SHOW COLUMNS FROM `' . $config['prefix'] . 'admin_session`')->fetchAll(PDO::FETCH_ASSOC); $db->rollBack(); foreach ($rows as $row) { if (in_array($row['Field'], ['token', 'terminal'], true)) { echo json_encode(['field' => $row['Field'], 'type' => $row['Type']]) . PHP_EOL; } } } catch (Throwable $error) { echo 'Session schema check failed without printing configuration.'; exit(1); }