这些函数的行为受 php.ini 中的设置影响。
The following table lists the configuration options available in the SQLSRV extension. For more information about these options, see » Handling SQLSRV Warnings and Errors.
名字 | 默认 | 可修改范围 | Changelog |
---|---|---|---|
sqlsrv.WarningsReturnAsErrors | 1 (true ) |
PHP_INI_ALL | Available since SQLSRV 1.0 |
sqlsrv.LogSubsystems | 0 | PHP_INI_ALL | Available since SQLSRV 1.0 |
sqlsrv.LogSeverity | 1 | PHP_INI_ALL | Available since SQLSRV 1.0 |