Skip to content

Commit 8e3ab80

Browse files
committed
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
1 parent 901a091 commit 8e3ab80

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

ext/pdo_dblib/dblib_driver.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,6 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options)
539539
}
540540

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

0 commit comments

Comments
 (0)