You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecated warnings in PHP 8.5 for configuration with MySql specific PDO-Constants and dosnt respect the new constants for eg. Pdo\Mysql #333
In PHP 8.5 and deprecated warnings = on, we recive this warning: Constant PDO::MYSQL_ATTR_SSL_CA is deprecated since 8.5, use Pdo\Mysql::ATTR_SSL_CA instead
All new constants for eg. Pdo\Mysql are not recognized by the configuration because the regex is not matching.
Steps To Reproduce
Configure the database (MySql) in local.neon e.g. for SSL:
database:
default:
dsn: 'mysql:...'
user: '...'
password: '...'
options:
# Working
PDO::MYSQL_ATTR_SSL_CA: '/pathtoca'
# Not working
Pdo\Mysql::ATTR_SSL_CA: '/pathtoca'
The capitalization is for the function constant(...) irrelevant, but for the readness i will prefer the correct capitalization.
Possible Solution
In function Bridges\DatabaseDI\DatabaseExtension.php::setupDatabase() line 84
The regex should be: '#^PDO(|\\\\\w+)::\w+$#Di'
This would match 'PDO' followed nothing else as "::" and 'Pdo\XyZ' followed "::".
I hope that covers all cases. But I'm not sure.
changed the title [-]Deprecated warnings in PHP 8.5 for configuration with MySql specific PDO-Constants[/-][+]Deprecated warnings in PHP 8.5 for configuration with MySql specific PDO-Constants and dosnt respect the new constants for eg. Pdo\Mysql[/+]on Aug 17, 2026
Activity
[-]Deprecated warnings in PHP 8.5 for configuration with MySql specific PDO-Constants[/-][+]Deprecated warnings in PHP 8.5 for configuration with MySql specific PDO-Constants and dosnt respect the new constants for eg. Pdo\Mysql[/+]DatabaseExtension: options accept driver-specific constants like Pdo\…