Skip to content

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

Closed
iliaal wants to merge 2 commits into
PHP-8.4from
fix-pdo-dblib-printf
Closed

Remove stray printf() on invalid DSN version in pdo_dblib#96
iliaal wants to merge 2 commits into
PHP-8.4from
fix-pdo-dblib-printf

Conversation

@iliaal

@iliaal iliaal commented Jun 16, 2026

Copy link
Copy Markdown
Owner

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 force-pushed the fix-pdo-dblib-printf branch from b33d3ae to b7e75fa Compare 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 force-pushed the fix-pdo-dblib-printf branch from b7e75fa to 5c9c404 Compare June 16, 2026 21:42
@iliaal

iliaal commented Jun 16, 2026

Copy link
Copy Markdown
Owner Author

Submitted upstream as php#22345.

@iliaal iliaal closed this Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants