v4.3.0
版本发布时间: 2017-07-07 07:22:54
microsoft/msphpsql最新发布版本:v5.11.0(2023-03-07 09:58:04)
We are excited to announce that Production ready release for SQLSRV and PDO_SQLSRV is now available on Sierra, El Capitan, Debian Jessie, Ubuntu 16, Ubuntu 15, CentOS 7, and Windows supporting PHP 7.0 and PHP 7.1.
Notable items about this release (4.3.0) since the last production release (4.0.8) are:
Added
- Added Unicode Column name support (issue #138).
- Support for Always On Availability groups via Transparent Network IP Resolution (TNIR)
- Added support for sql_variant data type with limitation (issue #51 and issue #127)
- Support drivers on Debian Jessie (tested on Debian 8.7)
- Idle Connection Resiliency support in Windows
- Connection pooling support for Linux and macOS
- Support for Mac (El Capitan and above)
- Azure Active Directory Authentication (AzureAD) with ActiveDirectoryPassword and SqlPassword
Fixed
- Fixed PECL installation errors when PHP was installed from source (issue #213).
- Fixed the assertion error (Linux) when fetching data from a binary column using the binary encoding (issue #226).
- Fixed issue output parameters bound to empty string (issue #182).
- Fixed a memory leak in closing connection resources.
- Fixed load ordering issue in MacOS (issue #417)
- Added a workaround for a bug in unixODBC 2.3.4 when connection pooling is enabled.
- Fixed the issue with driver loading order in macOS
- Fixed null returned when an empty string is set to an output parameter (issue #308).
-
Fixed in SQLSRV
- Fixed sqlsrv client buffer size to only allow positive integers (issue #228).
- Fixed sqlsrv_num_rows() when the client buffered result is null (issue #330).
- Fixed issues with sqlsrv_has_rows() to prevent it from moving statement cursor (issue #37).
- Fixed conversion warnings because of some const chars (issue #332).
- Fixed debug abort error when building the driver in debug mode with PHP 7.1.
- Fixed string truncation when binding varchar(max), nvarchar(max), varbinary(max), and xml types (issue #231).
- Fixed fatal error when fetching empty nvarchar (issue #69).
- Fixed fatal error when calling sqlsrv_fetch() with an out of bound offset for SQLSRV_SCROLL_ABSOLUTE (issue #223).
-
Fixed in PDO_SQLSRV
- Fixed issue with SQLSRV_ATTR_FETCHES_NUMERIC_TYPE when column return type is set on statement (issue #173).
- Improved performance by implementing a cache to store column SQL types and display sizes (issue #189).
- Fixed segmentation fault with PDOStatement::getColumnMeta() when the supplied column index is out of range (issue #224).
- Fixed issue with the unsupported attribute PDO::ATTR_PERSISTENT in connection (issue #65).
- Fixed the issue with executing DELETE operation on a non-existent value (issue #336).
- Fixed incorrectly binding of unicode parameter when emulate prepare is on and the encoding is set at the statement level (issue #92).
- Fixed binary column binding when emulate prepare is on (issue #140).
- Fixed wrong value returned when fetching varbinary value on Linux (issue #270).
- Fixed binary data not returned when the column is bound by name (issue #35).
- Fixed exception thrown on closeCursor() when the statement has not been executed (issue #267).
Limitation
- No support for inout / output params when using sql_variant type
Known Issues
- When pooling is enabled in Linux or MAC
- unixODBC <= 2.3.4 (Linux and MAC) might not return proper diagnostics 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
Survey
Let us know how we are doing and how you use our driver by taking our pulse survey:
Install
- On Linux and Mac run the commands below:
sudo pecl install sqlsrv
sudo pecl install pdo_sqlsrv
- On Windows, download the DLLs from SQLSRV or PDO_SQLSRV PECL repository.
1、 CentOS7-7.0.tar 1.26MB
2、 CentOS7-7.1.tar 1.26MB
3、 Debian8-7.0.tar 1.26MB
4、 Debian8-7.1.tar 1.26MB
5、 Mac-7.0.tar 1.1MB
6、 Mac-7.1.tar 1.1MB
7、 Mac-7.2.tar 1.1MB
8、 Ubuntu15-7.0.tar 1.25MB
9、 Ubuntu15-7.1.tar 1.25MB
10、 Ubuntu16-7.0.tar 1.25MB
11、 Ubuntu16-7.1.tar 1.25MB
12、 Windows-7.0.zip 694.01KB
13、 Windows-7.1.zip 690.46KB