Commit
This commit is contained in:
parent
1e1635ebb4
commit
34a963bb8d
@ -25,7 +25,7 @@ class Database
|
|||||||
$dsn = "mysql:host={$args['host']};dbname={$args['database']};charset={$args['charset']}";
|
$dsn = "mysql:host={$args['host']};dbname={$args['database']};charset={$args['charset']}";
|
||||||
$options = [
|
$options = [
|
||||||
PDO::ATTR_PERSISTENT => true,
|
PDO::ATTR_PERSISTENT => true,
|
||||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
|
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION // In PHP 8 and above, this will be the default mode.
|
||||||
];
|
];
|
||||||
return new PDO($dsn, $args['user'], $args['password'], $options);
|
return new PDO($dsn, $args['user'], $args['password'], $options);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user