mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 18:29:55 +09:00
Fix deprecations in PHP 8.5 #2639
This commit is contained in:
parent
94a5b40435
commit
d6b7cb52b8
3 changed files with 13 additions and 4 deletions
|
|
@ -127,9 +127,18 @@ class DB
|
|||
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
|
||||
\PDO::ATTR_EMULATE_PREPARES => false,
|
||||
\PDO::ATTR_STATEMENT_CLASS => array('\Rhymix\Framework\Helpers\DBStmtHelper'),
|
||||
\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => false,
|
||||
);
|
||||
|
||||
// Use unbuffered queries to reduce memory usage.
|
||||
if (\PHP_VERSION_ID >= 80400)
|
||||
{
|
||||
$options[\PDO\MySQL::ATTR_USE_BUFFERED_QUERY] = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$options[\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY] = false;
|
||||
}
|
||||
|
||||
// Preload the statement helper class.
|
||||
class_exists('\Rhymix\Framework\Helpers\DBStmtHelper');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue