Browse Source

Only load required database so when launching sessions

pull/1196/head
Timothée Jaussoin 3 years ago
parent
commit
bcede0214d
  1. 1
      CHANGELOG.md
  2. 12
      src/Movim/Daemon/Session.php

1
CHANGELOG.md

@ -4,6 +4,7 @@ Movim Changelog
v0.22 (trunk)
---------------------------
* Fix #1183 compileOpcache fails with php8.1
* Only load required database so when launching sessions
v0.21
---------------------------

12
src/Movim/Daemon/Session.php

@ -35,15 +35,11 @@ class Session
private $extensions = [
'pdo',
'mysqlnd', // load first
'xml',
'imagick',
'curl',
'dom',
'mbstring',
'mysqli',
'pdo_mysql',
'pdo_pgsql',
'simplexml'
];
@ -130,6 +126,14 @@ class Session
array_push($this->extensions, 'json');
}
if (config('database.driver') == 'mysql') {
array_push($this->extensions, 'mysqlnd');
array_push($this->extensions, 'mysqli');
array_push($this->extensions, 'pdo_mysql');
} else {
array_push($this->extensions, 'pdo_pgsql');
}
foreach ($this->extensions as $extension) {
$configuration .= '-dextension=' . $extension . '.so ';
}

Loading…
Cancel
Save