diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Pdo/Base.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Pdo/Base.php index 5d19748498..08a57f7799 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Pdo/Base.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Pdo/Base.php @@ -65,7 +65,10 @@ protected function getPDO() : \PDO if ($oSettings->sslCa) { $options[\PDO::MYSQL_ATTR_SSL_CA] = $oSettings->sslCa; } - $options[\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = $oSettings->sslVerify; + // PHP 8.0 https://github.com/the-djmaze/snappymail/issues/1205 + if (\defined('PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT')) { + $options[\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = $oSettings->sslVerify; + } if ($oSettings->sslCiphers) { $options[\PDO::MYSQL_ATTR_SSL_CIPHER] = $oSettings->sslCiphers; }