Partager via


Microsoft Drivers 4.1.7 Previews for PHP for SQL Server Released!

Hi all, we are delighted to share the Preview of the Microsoft Drivers 4.1.7 for PHP for SQL Server. The new driver enables access to SQL Server, Azure SQL Database and Azure SQL DW from any PHP 7+ application on Windows, Linux and Mac.

The major highlights of this release are:

Added

  • Support for Mac (El Capitan and above)

Fixed

  • SQLSRV and PDO_SQLSRV
    • Fixed null returned when an empty string is set to an output parameter (issue #308).
    • Fixed memory leaks in buffered result sets.
    • Fixed clang compile errors.
  • SQLSRV only
    • 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).
  • PDO_SQLSRV only
    • 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).

Changed

Survey

Let us know how we are doing and how you use our driver by taking our March pulse survey: https://www.surveymonkey.com/r/YDFJ23X 

Get Started

Getting Drivers for PHP5 and older runtimes

You can download the Microsoft Drivers for PHP for SQL Server for PHP 5.4, 5.5 and 5.6 from the download center: https://www.microsoft.com/en-us/download/details.aspx?id=20098. Version 3.0 supports PHP 5.4, version 3.1 supports PHP 5.4 and PHP 5.5 and version 3.2 supports PHP 5.4, 5.5 and 5.6.

PHP Driver Version Supported
v3.2 PHP 5.6, 5.5, 5.4
v3.1 PHP 5.5, 5.4
v3.1 PHP 5.4

Meet Bhagdev (meetb@microsoft.com)

MSFTlovesPHP