11/04/2010 18:55:12

Use this readme file to help you configure the Microsoft Drivers for PHP for SQL Server.

Installation

Version 2.0 of the Microsoft Drivers for PHP for SQL Server installs several versions of the driver:

Driver file

PHP version

Thread safe?

Use with PHP .dll

php_sqlsrv_53_nts_vc6.dll

php_pdo_sqlsrv_53_nts_vc6.dll

5.3

no

php5.dll

php_sqlsrv_53_nts_vc9.dll

php_pdo_sqlsrv_53_nts_vc9.dll

5.3

no

php5.dll

php_sqlsrv_53_ts_vc6.dll

php_pdo_sqlsrv_53_ts_vc6.dll

5.3

yes

php5ts.dll

php_sqlsrv_53_ts_vc9.dll

php_pdo_sqlsrv_53_ts_vc9.dll

5.3

yes

php5ts.dll

php_sqlsrv_52_nts_vc6.dll

php_pdo_sqlsrv_52_nts_vc6.dll

5.2

no

php5.dll

php_sqlsrv_52_ts_vc6.dll

php_pdo_sqlsrv_52_ts_vc6.dll

5.2

yes

php5ts.dll

If the name of the driver file contains "vc9", it should be used with a PHP version compiled with Visual C++ 9.0.

Follow the installation instructions in the "Loading the Microsoft Drivers for PHP for SQL Server" topic in the documentation to configure the driver for use with the PHP runtime.

Support

Documentation for this release ships both in a CHM file in the same directory as this readme file, and on the MSDN website (search for Microsoft Drivers for PHP for SQL Server Documentation).

The documentation also contains support information (see the Support Resources topic).

For information about supported operating systems, see System Requirements in the documentation.

Note

Only the version of the driver released by Microsoft is supported by Microsoft Customer Service and Support.

An update to version 2.0 of the Microsoft Drivers for PHP for SQL Server, released in November 2010 contains the following updates:

  • Long column names (up to 128 characters) were incorrectly truncated to 29 chars. Any application that attempted to use column names allowed by SQL Server stopped working. The November 2010 update no longer truncates column names that are up to 128 characters long.

  • PDO::Quote added a null terminator to the end of the string. A null terminator is no longer added to the end of the quoted string.

  • An error could occur when binding null data to server columns of type varbinary, binary, or varbinary(max). This error will not occur if you specify binary encoding (PDO::SQLSRV_ENCODING_BINARY) using the $driver_options parameter of PDOStatement::bindParam.

  • An access violation could occur in the error handler routine for some error cases, causing the PHP process to stop. These error handler routines will no longer cause an access violation.

Source Code Availability

The source code for the Microsoft Drivers for PHP for SQL Server is available here.