msphpsql

Microsoft Drivers for PHP for SQL Server

MIT License

Stars
1.8K
Committers
33

Bot releases are hidden (Show)

msphpsql - Production Release for the PHP drivers Version 5.3.0 for SQL Server

Published by david-puglielli about 6 years ago

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.
msphpsql - 5.2.1-preview for PHP drivers for SQL Server

Published by yitam over 6 years ago

With excitement, we announce the technical preview for SQLSRV and PDO_SQLSRV drivers that support basic CRUD functionalities with the Always Encrypted feature for Windows, Linux and macOS. Both drivers have been built with PHP 7.0+ and tested on all supported platforms (Windows, Ubuntu 16.04 and 17.10, RedHat 7, Debian 8 and 9, Suse 12, and macOS 10.11, 10.12, and 10.13).

Notable items about the 5.2.1-preview release,

Added

  • Added support for Azure Key Vault for Always Encrypted for basic CRUD functionalities such that Always Encrypted feature is also available to Linux or macOS users
  • Added support for macOS High Sierra (requires MS ODBC Driver 17+)

Fixed

  • Issue #577 - Idle Connection Resiliency doesn't work with Column Encryption enabled connection
  • Issue #678 - Idle Connection Resiliency doesn't work with Connection Pooling bug
  • Issue #699 - Binding output parameter failed when the query in the stored procedure returned no data. The test case has been added to the test lab.
  • Issue #705 - AE - Retrieving a negative decimal value (edge case) as output parameter causes truncation
  • Issue #706 - AE - Cannot insert double with precision and scale (38, 38)
  • Issue #707 - AE - 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 such 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 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 connection will not work
  • Always Encrypted feature, which requires MS ODBC Driver 17+
    • only Windows Certificate Store and Azure Key Vault are supported
    • Issue #716 - With Always Encrypted feature enabled, Named Parameters in Sub Queries are not supported
    • Always Encrypted limitations

Known Issues

  • Connection pooling on Linux or macOS 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 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
  • 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-5.2.1preview
    sudo pecl install pdo_sqlsrv-5.2.1preview
  • Download Windows DLLs from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - Production release for PHP drivers for SQL Server on Mac OS X,Linux, and Windows

Published by yukiwongky over 6 years ago

We are excited to announce the Production ready release for SQLSRV and PDO_SQLSRV drivers, supporting the basic CRUD functionalities with Always Encrypted. Both drivers have been built with PHP 7.* and tested on all supported platforms (Windows, Ubuntu 16 & 17, Debian 8 & 9, RedHat 7, SUSE 12, El Capitan and Sierra).

Notable items about this release (5.2.0) since the last production release (4.3.0) are:

Added

  • Added support for Always Encrypted with basic CRUD functionalities (see here)
    • Support for Windows Certificate Store (use connection keyword ColumnEncryption)
    • Support for inserting into and modifying an encrypted column
    • Support for fetching from an encrypted column
  • Added support for PHP 7.2
  • Added support for MS ODBC Driver 17
  • Added support for Ubuntu 17 (requires MS ODBC Driver 17)
  • Added support for Debian 9 (requires MS ODBC Driver 17)
  • Added support for SUSE 12
  • Added Driver option to set the MS ODBC driver, Added "Driver" option, valid values are "ODBC Driver 17 for SQL Server", "ODBC Driver 13 for SQL Server", and "ODBC Driver 11 for SQL Server"
    • The default driver is ODBC Driver 17 for SQL Server

Changed

  • Implementation of PDO::lastInsertId($name) to return the last inserted sequence number if the sequence name is supplied to the function (lastInsertId)

Fixed

  • Issue #555 - Hebrew strings truncation (requires MS ODBC Driver 17)
  • Adjusted precisions for numeric/decimal inputs with Always Encrypted
  • Support for non-UTF8 locales in Linux and macOS
  • Fixed crash caused by executing an invalid query in a transaction (Issue #434)
  • Added error handling for using PDO::SQLSRV_ATTR_DIRECT_QUERY or PDO::ATTR_EMULATE_PREPARES in a Column Encryption enabled connection
  • Added error handling for binding TEXT, NTEXT or IMAGE as output parameter (Issue #231)
  • PDO::quote with string containing ASCII NUL character (Issue #538)
  • Decimal types with no decimals are correctly handled when AE is enabled (PR #544)
  • BIGINT as an output param no longer results in value out of range exception when the returned value is larger than a maximum integer (PR #567)

Removed

  • Dropped support for Ubuntu 15
  • Supplying tablename into PDO::lastInsertId($name) no longer return the last inserted row (lastInsertId)

Limitations

  • Always Encrypted is not supported in Linux and macOS
  • In Linux and macOS, setlocale() only takes effect if it is invoked before the first connection. Attempting to set the locale after connection will not work
  • Always Encrypted functionalities are only supported using MS ODBC Driver 17
  • Always Encrypted limitations
  • When using sqlsrv_query with Always Encrypted feature, SQL type has to be specified for each input (see here)
  • No support for inout / output params when using sql_variant type

Known Issues

  • Connection pooling on Linux may not work properly when using unixODBC < 2.3.6
  • When pooling is enabled in Linux or macOS
    • unixODBC <= 2.3.4 (Linux and macOS) 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
  • Connection with Connection Resiliency enabled does not resume properly with Connection Pooling (Issue #678)
  • With ColumnEncryption enabled, calling stored procedure with XML parameter does not work (Issue #674)
  • Cannot connect with both Connection Resiliency enabled and ColumnEncryption enabled (Issue #577)
  • With ColumnEncryption enabled, retrieving a negative decimal value as output parameter causes truncation of the last digit (Issue #705)
  • With ColumnEncryption enabled, cannot insert a double into a decimal column with precision and scale of (38, 38) (Issue #706)
  • With ColumnEncryption enabled, when fetching decimals as output parameters bound to PDO::PARAM_BOOL or PDO::PARAM_INT, floats are returned, not integers (Issue #707)

Survey

Thank you for taking the time to participate in our survey. You can help us improve by letting us know how we are doing and how you use PHP by taking our December pulse survey:

Install

  • On Linux and macOS run the commands below:
    sudo pecl install sqlsrv-5.2.0
    sudo pecl install pdo_sqlsrv-5.2.0
  • Download Windows binaries from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 5.2.0-RC macOS/Linux/Windows

Published by yitam almost 7 years ago

We are excited to announce the Release Candidate for SQLSRV and PDO_SQLSRV drivers, supporting the basic CRUD functionalities with Always Encrypted. Both drivers have been built with PHP 7.* and tested on all supported platforms (Windows, Ubuntu 16 & 17, Debian 8 & 9, RedHat 7, SUSE 12, El Capitan and Sierra).

Notable items about the 5.2.0-RC,

Added

Fixed

  • Issue #555 - Hebrew strings truncation (requires MSODBC 17 preview)
  • Issue #615 - Added error handling when fetching varchar(max) as a stream with Always Encrypted
  • Adjusted precisions for numeric/decimal inputs with Always Encrypted
  • Fixed bugs when binding parameters with Always Encrypted
  • Fixed warnings as per Prefast code analysis

Limitations

  • In Linux and macOS, setlocale() only takes effect if it is invoked before the first connection. The subsequent locale setting will not work
  • Always Encrypted functionalities are only supported using MSODBC 17 preview
    • ODBC binaries for macOS available upon request
  • MSODBC 17 preview msodbcsql.msi only works for Windows10
  • Always Encrypted limitations
  • When using sqlsrv_query with Always Encrypted feature, SQL type has to be specified for each input (see here)
  • No support for inout / output params when using sql_variant type

Known Issues

  • Connection pooling on Linux doesn't work properly if the user uses the MSODBC17 preview
  • 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

Thank you for taking the time to participate in our survey. You can help us improve by letting us know how we are doing and how you use PHP by taking our December pulse survey:

Install

  • On Linux and macOS run the commands below:
    sudo pecl install sqlsrv-5.2.0RC1
    sudo pecl install pdo_sqlsrv-5.2.0RC1
  • Download Windows binaries from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 5.1.2-preview macOS/Linux/Windows

Published by yukiwongky almost 7 years ago

With excitement, we announce the technical preview for SQLSRV and PDO_SQLSRV drivers that support basic CRUD functionalities with the Always Encrypted feature. Both drivers have been built with PHP 7.0+ and tested on all supported platforms (Ubuntu 16, Debian 8, CentOS 7, and Windows).

Notable items about the 5.1.2-preview release,

Added

  • Support for non-UTF8 locales in Linux and macOS

Fixed

  • Fixed crash caused by executing an invalid query in a transaction (Issue #434)
  • Fixed regression in sqlsrv_next_result returning a no fields error when the active result set is null (Issue #581)
  • Fixed incorrect active result set when sqlsrv_next_result or PDOStatement::nextRowset is called when Column Encryption is enabled (Issue #574)
  • Fixed data corruption in fetching from an encrypted max column after calling sqlsrv_next_result or PDOStatemet::nextRowset (Issue #580)
  • Added error handling for using PDO::SQLSRV_ATTR_DIRECT_QUERY or PDO::ATTR_EMULATE_PREPARES in a Column Encryption enabled connection
  • Added error handling for binding TEXT, NTEXT or IMAGE as output parameter (Issue #231)

Limitations

  • In Linux and macOS, setlocale() only takes effect if it is invoked before the first connection. The subsequent locale setting will not work
  • Always Encrypted functionalities are only supported using MSODBC 17 preview
    • ODBC binaries for macOS available upon request
  • MSODBC 17 preview msodbcsql.msi only works for Windows10
  • Always Encrypted limitations
  • When using sqlsrv_query with Always Encrypted feature, SQL type has to be specified for each input (see here)
  • No support for inout / output params when using sql_variant type

Known Issues

  • Binding decimal input as a string when Column Encryption is enabled may change the precision of the input
  • Connection pooling on Linux doesn't work properly if the user uses the MSODBC17 preview
  • 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 drivers by taking our pulse survey:

Install

  • On Linux and macOS run the commands below:
    sudo pecl install sqlsrv-5.1.2preview
    sudo pecl install pdo_sqlsrv-5.1.2preview
  • Download Windows DLLs from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 5.1.1-preview macOS/Linux/Windows

Published by yitam almost 7 years ago

With excitement, we announce the technical preview for SQLSRV and PDO_SQLSRV drivers that support basic CRUD functionalities with the Always Encrypted feature. Both drivers have been built with PHP 7.0+ and tested on all supported platforms (Ubuntu 16, Debian 8, CentOS 7, and Windows).

Notable items about the 5.1.1-preview release,

Fixed

  • PDO::quote with string containing ASCII NUL character (Issue #538)
  • Appropriate error message is returned when calling nextRowset() or sqlsrv_next_result() on an empty result set (issue #507 )
  • Decimal types with no decimals are correctly handled when AE is enabled (PR #544)
  • Search for installed ODBC drivers in Linux/macOS first before attempting to connect using the default ODBC driver
  • BIGINT as an output param no longer results in value out of range exception when the returned value is larger than a maximum integer (PR #567)

Limitations

  • Always Encrypted functionalities are only supported using MSODBC 17 preview
    • ODBC binaries for macOS available upon request
  • MSODBC 17 preview msodbcsql.msi only works for Windows10
  • Always Encrypted limitations
  • When using sqlsrv_query with Always Encrypted feature, SQL type has to be specified for each input (see here)
  • No support for inout / output params when using sql_variant type

Known Issues

  • Connection pooling on Linux doesn't work properly if the user uses the MSODBC17 preview
  • 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 drivers by taking our pulse survey:

Install

  • On Linux and macOS run the commands below:
    sudo pecl install sqlsrv-5.1.1preview
    sudo pecl install pdo_sqlsrv-5.1.1preview
  • Download Windows DLLs from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 5.1.0-preview Mac OS X/Linux/Windows

Published by yukiwongky about 7 years ago

We are excited to announce the technical preview for SQLSRV and PDO_SQLSRV drivers support basic CRUD functionalities with Always Encrypted. Both drivers have been built PHP 7.1 and tested on all supported platforms (Ubuntu 16, Debian 8, CentOS 7, and Windows)

Notable items about 5.1.0-preview release,

Added

  • Added support for SUSE 12
  • Added support for Always Encrypted with basic CRUD functionalities (see here)
    • Support for Windows Certificate Store (use connection keyword ColumnEncryption)
    • Support for custom key store provider (use connection keywords ColumnEncryption, CEKeystoreProvider, CEKeystoreName, CEKeystoreEncryptKey)
    • Support for inserting into an encrypted column
    • Support for fetching from an encrypted column
  • Added support for MSODBC 17 preview
  • Added Driver option to set the ODBC driver, Added"Driver" option, valid values are ODBC Driver 13 for SQL Server,ODBC Driver 11 for SQL Server, and ODBC Driver 17 for SQL Server
    • If the user intends to use the new Always Encrypted features, we recommend you to specify explicitly the 'Driver' option to 'ODBC Driver 17 for SQL Server' in the connection string

Limitations

  • Always Encrypted functionalities are only supported using MSODBC 17 preview
    • ODBC binaries for macOS available upon request
  • MSODBC 17 preview msodbcsql.msi only works for Windows10
  • Always Encrypted limitations
  • when using sqlsrv_query with Always Encrypted feature, SQL type has to be specified for each input (see here)
  • No support for inout / output params when using sql_variant type

Known Issues

  • Connection pooling on Linux doesn't work properly if the user uses the MSODBC17 preview
  • PDO::quote returns truncated string with garbage characters appended if the string contains a ASCII NUL ('/0') character
  • Binding decimal type when using Always Encrypted in the SQLSRV x64 driver returns an error during insertion when the input does not have any decimal places
  • 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-5.1.0preview
    sudo pecl install pdo_sqlsrv-5.1.0preview
  • Download Windows DLLs from SQLSRV or PDO_SQLSRV PECL repository.
  • The Windows binaries is not yet available on GitHub. We will publish them as soon as possible.
msphpsql - 5.0.0-preview Mac OS X/Linux/Windows

Published by yukiwongky about 7 years ago

We are excited to announce the technical preview for SQLSRV and PDO_SQLSRV drivers support PHP 7.2 Beta 1 as well. Both drivers have been built PHP 7.2 Beta 1 and tested on all supported platforms (Mac OS X (Sierra and El Capitan), Ubuntu 16, Debian 8, CentOS 7, and Windows)

Notable items about 5.0.0-preview release,

Added

  • Added support for PHP 7.2 Beta 1

Changed

  • Implementation of PDO::lastInsertId($name) to return the last inserted sequence number if the sequence name is supplied to the function (lastInsertId)

Removed

  • No longer support Ubuntu 15
  • Supplying tablename into PDO::lastInsertId($name) no longer return the last inserted row (lastInsertId)

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-5.0.0preview
    sudo pecl install pdo_sqlsrv-5.0.0preview
  • Download Windows DLLs from SQLSRV or PDO_SQLSRV PECL repository.

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.
msphpsql - 4.3.0-RC1 Mac OS X/ Linux/ Windows

Published by Hadis-Knj over 7 years ago

We're excited to announce that the release candidate for Mac OS X (Sierra and El Capitan), Ubuntu 15.10, Ubuntu 16, Debian 8, CentOS 7, and Windows supporting PHP 7.0 and PHP 7.1 is now available.

Notable items about 4.3.0-RC1 release,

Added

  • Transparent Network IP Resolution (TNIR) feature.

Fixed

  • Fixed a memory leak in closing connection resources.
  • Fixed load ordering issue in MacOS (issue #417)

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-4.3.0RC1
    sudo pecl install pdo_sqlsrv-4.3.0RC1
  • On Windows, download the DLLs from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 4.2.0-preview Mac OS X/Linux/Windows

Published by yitam over 7 years ago

We are excited to announce the technical preview for SQLSRV and PDO_SQLSRV drivers support Debian Jessie as well. Both drivers have been built and tested on Debian 8.7. In addition, starting with this release, we support sql_variant type with limitations.

Notable items about 4.2.0-preview release,

Added

  • Added support for sql_variant data type with limitation (issue #51 and issue #127)
  • Support drivers on Debian Jessie (tested on Debian 8.7)

Fixed

  • Increased Test Coverage to 75%
  • Bug fixes after running static analysis

Limitation

  • No support for inout / output params when using sql_variant type

Known Issues

  • User defined data types
  • 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-4.2.0preview
    sudo pecl install pdo_sqlsrv-4.2.0preview
  • On Windows, download the DLLs from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 4.1.9-preview Mac OS X/Linux/Windows

Published by yukiwongky over 7 years ago

Updated documentation for Readme regarding instructions for Linux and MAC
Updated PECL release packages. Here is the list of updates:

Added

  • Azure Active Directory Authentication with ActiveDirectoryPassword and SqlPassword

Fixed

  • Fixed output parameter returning garbage when the parameter is initialized to a type that is different from the output type (issue #378).

PDO_SQLSRV only

  • 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).

Known Issues

  • User defined data types and SQL_VARIANT (issue #127).
  • When pooling is enabled in Linux or MAC
    • unixODBC 2.3.1 (Linux) and unixODBC 2.3.4 (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 April pulse survey:

Install

  • On Linux and Mac run the commands below:
    sudo pecl install sqlsrv-4.1.9preview
    sudo pecl install pdo_sqlsrv-4.1.9preview
  • On windows, download the DLLs from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 4.1.8-preview Mac OS/Linux/Windows

Published by yukiwongky over 7 years ago

Updated documentation for Readme regarding instructions for Linux and macOS
Updated PECL release packages. Here is the list of updates:

Added

Fixed

SQLSRV and PDO_SQLSRV

  • Added a workaround for a bug in unixODBC 2.3.4 when connection pooling is enabled.
  • Fixed the issue in MAC such that which driver is loaded first no longer matters.

SQLSRV only

  • Fixed sqlsrv_num_rows() when the client buffered result is null (issue #330).
  • Fixed conversion warnings because of some const chars (issue #332).

PDO_SQLSRV only

  • Improved performance by implementing a cache to store column SQL types and display sizes (issue #189).
  • Fixed issue with the unsupported attribute PDO::ATTR_PERSISTENT in connection (issue #65).
  • Fixed the issue when deleting something that doesn't exist (issue #336).

Known Issues

  • User defined data types and SQL_VARIANT (issue #127).
  • Binary column binding with emulate prepare (issue #140).
  • When pooling is enabled in Linux or MAC
    • unixODBC 2.3.1 (Linux) and unixODBC 2.3.4 (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 April pulse survey:

Install

  • On Linux and Mac run the commands below:
    sudo pecl install sqlsrv-4.1.8preview
    sudo pecl install pdo_sqlsrv-4.1.8preview
  • On windows, download the DLLs from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 4.1.7-preview Mac OS X/Linux/Windows

Published by Hadis-Knj over 7 years ago

We are thrilled to announce that the early technical preview for SQLSRV and PDO_SQLSRV drivers is now available. Both drivers have been built and tested on El Capitan (OS X 10.11).

Notable items about 4.1.7-preview release,

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).

Survey

Let us know how we are doing and how you use our driver by taking our April pulse survey:

Known Issues

  • User defined data types and SQL_VARIANT (issue #127).
  • Binary column binding with emulate prepare (issue #140).
  • Segmentation fault may result when an unsupported attribute is used for connection.
MAC only
  • If loading both sqlsrv and pdo_sqlsrv, the order matters (even when dynamically). For PDO_SQLSRV scripts, load pdo_sqlsrv.so first. For SQLSRV scripts, load sqlsrv.so first.
  • Connection pooling does not work.

Changed

Install

  • On Linux and Mac run the commands below:
    sudo pecl install sqlsrv-4.1.7preview
    sudo pecl install pdo_sqlsrv-4.1.7preview
  • On windows, download the DLLs from SQLSRV or PDO_SQLSRV PECL repository.
msphpsql - 4.1.6 Windows/Linux

Published by Hadis-Knj over 7 years ago

Updated PECL release packages. Here is the list of updates:

Added

  • Merged Linux and Windows code.
  • Enabled connection pooling with unixODBC. To enable pooling:

Fixed

  • Fixed issues with sqlsrv_has_rows() to prevent it from moving statement cursor (issue #37).
  • Fixed sqlsrv client buffer size to only allow positive integers (issue #228).
  • Fixed PECL installation errors when PHP was installed from source (issue #213).
  • Fixed segmentation fault with PDOStatement::getColumnMeta() when the supplied column index is out of range (issue #224).
  • Fixed the assertion error (Linux) when fetching data from a binary column using the binary encoding (issue #226).

Known Issues

  • The following features are not supported with connection pooling in Linux:
    • Unicode connection strings
    • sqlsrv_server_info and sqlsrv_client_info return false
    • In certain scenarios a generic error message maybe returned instead of a specific error when pooling is disabled
    • When retrieving data from columns with a data type of XML, varchar(max), nvarchar(max), or varbinary(max) no data maybe returned or the data maybe truncated depending on the length of the data in the source table.

Install

  • On Linux run the commands below:

    sudo pecl install sqlsrv-4.1.6.1
    sudo pecl install pdo_sqlsrv-4.1.6.1

  • On windows, download the DLLs from SQLSRV or PDO_SQLSRV PECL repository

msphpsql - 4.1.5 Windows Preview

Published by Hadis-Knj over 7 years ago

Windows drivers (4.1.5) compiled with PHP 7.0.14 and 7.1 are available. Here is the list of updates:

Added

Fixed

  • Fixed issue output parameters bound to empty string (issue #182).
  • Fixed issue with SQLSRV_ATTR_FETCHES_NUMERIC_TYPE when column return type is set on statement (issue #173).

Changed

  • Code structure is updated to facilitate the development; shared codes between both drivers are moved to "shared" folder to avoid code duplication issues in development. To build the driver from source:
    • if you are building the driver from source using PHP source, copy the "shared" folder as a subfolder to both the sqlsrv and pdo_sqlsrv folders.

Thanks,
SQL Server Team

msphpsql - Production Release for the PHP Linux Driver for SQL Server

Published by Hadis-Knj almost 8 years ago

We are excited to announce that production release of Linux drivers is available for Ubuntu 15.04, Ubuntu 16.04, and RedHat 7. Here is the list of updates:

Added

  • Added SQLSRV_ATTR_FETCHES_NUMERIC_TYPE attribute support in PDO_SQLSRV driver.SQLSRV_ATTR_FETCHES_NUMERIC_TYPE connection attribute flag handles numeric fetches from columns with numeric Sql types (only bit, integer, smallint, tinyint, float and real). This flag can be turned on by setting its value in PDO::setAttribute to true, For example,
    $conn->setAttribute(PDO::SQLSRV_ATTR_FETCHES_NUMERIC_TYPE,true);
    If SQLSRV_ATTR_FETCHES_NUMERIC_TYPE is set to true the results from an integer column will be represented as an int, likewise, Sql types float and real will be represented as float.
    Note for exceptions:
    • When connection option flag ATTR_STRINGIFY_FETCHES is on, even when SQLSRV_ATTR_FETCHES_NUMERIC_TYPE is on, the return value will still be string.
    • When the returned PDO type in bind column is PDO_PARAM_INT, the return value from a integer column will be int even if SQLSRV_ATTR_FETCHES_NUMERIC_TYPE is off.
  • Added Unicode Column name support(issue #138).

Fixed

  • Fixed issue with SQLSRV_ATTR_FETCHES_NUMERIC_TYPE when column return type is set on statement (issue #173).
  • Fixed precision issues when double data type returned as strings using buffered queries in PDO_SQLSRV driver.
  • Fixed issue with buffered cursor in PDO_SQLSRV driver when CharacterSet is UTF-8 (issue #192).
  • Fixed segmentation fault in error cases when error message is returned with emulate prepare attribute is set to true in PDO_SQLSRV driver.
  • Fixed issue with empty output parameters on stored procedure(issue #182).
  • Fixed memory leaks in buffered queries.

Limitations & Known issues

  • This release contains the PHP 7 port of the SQLSRV and PDO_SQLSRV drivers on Linux, and does not provide backwards compatibility with PHP 5.
  • Connection using named instances using '' is not supported.
  • Local encodings other than UTF-8 are not supported, and SQLSRV_ENC_CHAR only supports ASCII characters with ASCII code of 0 to 127.
  • Connection pooling in PDO_SQLSRV is not supported.
  • Binary column binding with emulate prepare (issue#140)

Thanks,
SQL Server Team

msphpsql - 4.0.7-Linux-Preview

Published by Hadis-Knj almost 8 years ago

We are excited to announce that PECL packages for Linux SQLSRV and PDO_SQLSRV drivers (4.0.7) are available. You can also find pre-compiled binaries (4.0.7) with PHP 7.0.13 for Ubuntu 15.04, Ubuntu 16.04, and RedHat 7 here.

  • Fixed string truncation error when inserting long strings.
  • Fixed querying from large column name.
  • Fixed issue with trailing garbled characters in string retrieval.
  • Fixed issue with detecting invalid UTF-16 strings coming from server.
  • Fixed issues with binding input text, ntext, and image parameters.
  • Ported buffered cursor to Linux.
  • Note: SQLSRV_ENC_CHAR only supports ASCII characters (ASCII code 0 to127).

Thanks,
SQL Server Team

msphpsql - 4.1.4 Windows Preview

Published by meet-bhagdev almost 8 years ago

Thanks to the community’s input, this release expands drivers functionalities. Updated Windows drivers include some bug fixes:

  • Drivers versioning has been redesigned as Major#.Minor#.Release#.Build#. Build number is specific to binaries and it doesn't match with the number on the source.
  • Fixed the issue with duplicate warning messages in PDO_SQLSRV drivers when error mode is set to PDO::ERRMODE_WARNING.

Thanks,
SQL Server Team

msphpsql - 4.0.6 - Linux - Preview

Published by meet-bhagdev almost 8 years ago

We are excited to announce that PECL packages for Linux SQLSRV and PDO_SQLSRV drivers (4.0.6) are available. You can also find pre-compiled binaries (4.0.5) with PHP 7.0.12 for Ubuntu 15.04, Ubuntu 16.04, and RedHat 7 here.

  • Drivers versioning has been redesigned as Major#.Minor#.Release#.Build#. Build number is specific to binaries and it doesn't match with the number on the source.
  • Fixed the issue with duplicate warning messages in PDO_SQLSRV drivers when error mode is set to PDO::ERRMODE_WARNING.
  • Fixed the issue with invalid UTF-8 strings, those are detected before executing any queries and proper error message is returned.
  • Fixed segmentation fault in sqlsrv_fetch_object and sqlsrv_fetch_array function.
  • Compiler C++ 11 is enabled in config file.

Thanks,
SQL Server Team