Commit 8e3ab806675 for php.net

commit 8e3ab806675d86ba0fb03b350d43dc45f51703e9
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date:   Tue Jun 16 16:27:53 2026 -0400

    Remove stray printf() on invalid DSN version in pdo_dblib

    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 GH-22345

diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c
index 0055dcb03b3..00ecf2d232c 100644
--- a/ext/pdo_dblib/dblib_driver.c
+++ b/ext/pdo_dblib/dblib_driver.c
@@ -539,7 +539,6 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options)
 		}

 		if (i==nvers) {
-			printf("Invalid version '%s'\n", vars[5].optval);
 			pdo_raise_impl_error(dbh, NULL, "HY000", "PDO_DBLIB: Invalid version specified in connection string.");
 			goto cleanup; /* unknown version specified */
 		}