Skip to content

Remove stray printf() on invalid DSN version in pdo_dblib#22345

Closed
iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix-pdo-dblib-printf
Closed

Remove stray printf() on invalid DSN version in pdo_dblib#22345
iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix-pdo-dblib-printf

Conversation

@iliaal

@iliaal iliaal commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

When the connection string specifies an unrecognized TDS version, pdo_dblib_handle_factory() writes the message to stdout via printf() before raising the proper PDO error, corrupting SAPI output. The pdo_raise_impl_error() call right below already reports the condition; drop the printf().

@iliaal iliaal requested a review from SakiTakamachi as a code owner June 16, 2026 21:42
When the connection string specified an unrecognized TDS version,
pdo_dblib_handle_factory() wrote the message to stdout via printf()
before raising the proper PDO error, corrupting SAPI output. The
pdo_raise_impl_error() call right below already reports the condition;
drop the printf().

Closes phpGH-22345
@iliaal iliaal closed this in 8e3ab80 Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants