-
In PHP 8.4 there will be PDO driver specific subclasses. This allows for driver specific methods. I imagine this not being a huge improvement for most, but it does allow SQLite users to load extensions for example. At the moment, framework/src/Illuminate/Database/Connectors/Connector.php Lines 63 to 66 in 81a0b5b In 8.4 you can use protected function createPdoConnection($dsn, $username, $password, $options)
{
return (version_compare(phpversion(), '8.4.0', '<'))
? new PDO($dsn, $username, $password, $options)
: PDO::connect($dsn, $username, $password, $options);
} See: https://github.com/php/php-src/blob/php-8.4.0alpha1/UPGRADING#L299. Would this be something to consider in 12.x? Assuming that's the first version supporting PHP 8.4. I'm happy to send a PR for it, but I am not sure what your policy is regarding new PHP versions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The PR for this got merged #52538. |
Beta Was this translation helpful? Give feedback.
The PR for this got merged #52538.