hussainweb / drupalqa

Docker image with quality analysis tools for Drupal
https://hub.docker.com/r/hussainweb/drupalqa
MIT License
21 stars 2 forks source link

Undefined constant PDO::MYSQL_ATTR_SSL_CA in Drush\Sql\SqlMysql->creds() #10

Open sharique opened 7 months ago

sharique commented 7 months ago

Hi Hussain

We started using DrupalQA in our pipeline. We are using with Acquia/blt and MariaDB. On version with php8.2, we are getting error on bit setup

Undefined constant PDO::MYSQL_ATTR_SSL_CA in Drush\Sql\SqlMysql->creds() (line 103 of /opt/atlassian/pipelines/agent/build/vendor/drush/drush/src/Sql/SqlMysql.php).

 [warning] Drush command terminated abnormally.
hussainweb commented 7 months ago

Thanks, @sharique. It's not clear if this error is from your project files or from DrupalQA itself. From the path, it seems that this is from your project files. Moreover, since DrupalQA is a Docker image that runs outside your project, it can't interfere with things like blt setup. Of course, all this depends on how you have configured it.

If you still think this is because of DrupalQA, can you reproduce this problem in an open repository so that I can check? Thanks.

sharique commented 7 months ago

I'm still trying to figure out from where it is coming from. After checking PDO::MYSQL_ATTR_SSL_CA on this page https://www.php.net/manual/en/ref.pdo-mysql.php, it seems PHP configuration issue. I'll let you know if I found a fix for this.