mirror of
https://github.com/php/php-src.git
synced 2026-04-05 07:02:33 +02:00
PDO driver constructors are throwing PdoException without setting errorInfo, so create a new reusable function that throws exceptions for PDO and will also set the errorInfo. Use this function in pdo_mysql, pdo_sqlite, and pdo_pgsql.