用于PHP的SQL Server驱动程序sqlsrv_connect()用忽略的错误填充PHP错误日志

Every time my PHP application connects to my SQL Server database, the following gets put into the PHP error log:

[01-Apr-2011 12:39:16] sqlsrv_connect: SQLSTATE = 01000
[01-Apr-2011 12:39:16] sqlsrv_connect: error code = 5701
[01-Apr-2011 12:39:16] sqlsrv_connect: message = [Microsoft][SQL Server Native Client 10.0][SQL Server]Changed database context to 'my_table_name'.
[01-Apr-2011 12:39:16] sqlsrv_connect: SQLSTATE = 01000
[01-Apr-2011 12:39:16] sqlsrv_connect: error code = 5703
[01-Apr-2011 12:39:16] sqlsrv_connect: message = [Microsoft][SQL Server Native Client 10.0][SQL Server]Changed language setting to us_english.
[01-Apr-2011 12:39:16] error ignored

How can I suppress this error? It doesn't appear to be a PHP error as it doesn't have a severity such as Notice/Warning/etc.

I suppose you could use the sqlsrv_configure() function, to change the error reporting and/or logs settings.

See also :