Handling TDS errors from PHP

Николай Кудрявцев <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Hello.

Is there any way to handle TDS errors from PHP code?

Here's what I'm trying to do: I'm working on user authorization using 
MsSql database login and password. The same login that is used to 
connect to MsSql database. Currently I'm just connecting to database and 
checking if the connection worked. If credentials are correct, 
everything works fine. But, if either login of password is wrong, my PDO 
connection just dies with this error:
FreeTDS: db-lib: exiting because client error handler returned INT_EXIT 
for msgno 20002
And that also crashes my php session.

Is there any way I can implement that client error handler on my PHP 
side, or it should had already been dealt by PDO_DBLIB?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.