v5.3.0
版本发布时间: 2018-07-21 05:00:04
microsoft/msphpsql最新发布版本:v5.11.0(2023-03-07 09:58:04)
We are pleased to announce the production release of the Microsoft Drivers for PHP for SQL Server. The SQLSRV and PDO_SQLSRV drivers have been built with PHP 7.0, 7.1, and 7.2 and tested on all supported platforms.
Notable items about this release (5.3.0) since the last production release (5.2.0) include the following:
Added
- Added support for Azure Key Vault for Always Encrypted functionality. Always Encrypted functionality is supported on Linux and macOS through Azure Key Vault
- Added support for connection resiliency on Linux and macOS (requires version 17.2 or higher of the ODBC driver)
- Added support for macOS High Sierra (requires version 17 or higher of the ODBC driver)
- Added support for Ubuntu 18.04 (requires version 17.2 or higher of the ODBC driver)
Fixed
- Issue #577 - Idle Connection Resiliency doesn't work with Column Encryption enabled connections (fixed in MS ODBC Driver 17.1)
- Issue #678 - Idle Connection Resiliency doesn't work with Connection Pooling (fixed in MS ODBC Driver 17.1)
- Issue #699 - Binding output parameters fails when the query in the stored procedure returns no data. The test case has been added to the test lab.
- Issue #705 - Always Encrypted - Retrieving a negative decimal value (edge case) as output parameter causes truncation
- Issue #706 - Always Encrypted - Cannot insert double with precision and scale (38, 38)
- Issue #707 - Always Encrypted - Fetching decimals / numerics as output parameters bound to PDO::PARAM_BOOL or PDO::PARAM_INT returns floats, not integers
- Issue #735 - Extended the buffer size for PDO::lastInsertId so that data types other than integers can be supported
- Pull Request #759 - Removed the limitation of binding a binary as inout param as PDO::PARAM_STR with SQLSRV_ENCODING_BINARY
- Pull Request #775 - Fixed the truncation problem for output params with SQL types specified as SQLSRV_SQLTYPE_DECIMAL or SQLSRV_SQLTYPE_NUMERIC
Limitations
- No support for inout / output params when using sql_variant type
- In Linux and macOS, setlocale() only takes effect if it is invoked before the first connection. Attempting to set the locale after connecting will not work
- Always Encrypted requires MS ODBC Driver 17+
- Only Windows Certificate Store and Azure Key Vault are supported. Custom Keystores are not supported
- Issue #716 - With Always Encrypted enabled, named parameters in subqueries are not supported
- Always Encrypted limitations
Known Issues
- Connection pooling on Linux or macOS is not recommended with unixODBC < 2.3.6
- When pooling is enabled in Linux or macOS
- unixODBC <= 2.3.4 (Linux and macOS) might not return proper diagnostic information, such as error messages, warnings and informative messages
- due to this unixODBC bug, fetch large data (such as xml, binary) as streams as a workaround. See the examples here
- With ColumnEncryption enabled, calling stored procedures with XML parameters does not work (Issue #674)
Survey
Let us know how we are doing and how you use our drivers by taking our pulse survey:
Install
- On Linux and macOS run the commands below:
sudo pecl install sqlsrv
sudo pecl install pdo_sqlsrv
- Download Windows DLLs from SQLSRV or PDO_SQLSRV PECL repository.
1、 CentOS7-7.0.tar 1.35MB
2、 CentOS7-7.1.tar 1.35MB
3、 CentOS7-7.2.tar 1.35MB
4、 Debian8-7.0.tar 1.36MB
5、 Debian8-7.1.tar 1.36MB
6、 Debian8-7.2.tar 1.36MB
7、 Debian9-7.0.tar 1.35MB
8、 Debian9-7.1.tar 1.35MB
9、 Debian9-7.2.tar 1.35MB
10、 Mac-7.0.tar 1.23MB
11、 Mac-7.1.tar 1.23MB
12、 Mac-7.2.tar 1.23MB
13、 Suse12-7.0.tar 1.38MB
14、 Suse12-7.1.tar 1.38MB
15、 Suse12-7.2.tar 1.38MB
16、 Ubuntu16-7.0.tar 1.35MB
17、 Ubuntu16-7.1.tar 1.35MB
18、 Ubuntu16-7.2.tar 1.35MB
19、 Ubuntu17-7.0.tar 1.34MB
20、 Ubuntu17-7.1.tar 1.34MB
21、 Ubuntu17-7.2.tar 1.34MB
22、 Ubuntu18-7.0.tar 1.34MB
23、 Ubuntu18-7.1.tar 1.34MB
24、 Ubuntu18-7.2.tar 1.34MB
25、 Windows-7.0.zip 931.25KB
26、 Windows-7.1.zip 810.64KB
27、 Windows-7.2.zip 804.81KB