Package Details: php-sqlsrv 5.6.1-1

Git Clone URL: (read-only, click to copy)
Package Base: php-sqlsrv
Description: Microsoft PDO Drivers for PHP for SQL Server
Upstream URL:
Licenses: MIT
Submitter: mtorromeo
Maintainer: None
Last Packager: mtorromeo
Votes: 5
Popularity: 0.088299
First Submitted: 2016-10-06 13:45
Last Updated: 2019-03-21 09:26

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

pedromello commented on 2019-12-31 22:08

version 5.6.1 lacks support for php 7.4 (it will be available on 5.7.1, currently in preview/devel only)

JoelCL commented on 2019-12-16 22:41

Apparently after upgrading to php 7.4 the sql server driver no longer works, I uninstalled it and when I want to install it again I get the following error (I hope it can be solved at once):

var/tmp/pamac-build-joel/php-sqlsrv/src/sqlsrv-5.6.1/shared/core_stream.cpp:201:5: error: invalid conversion from ‘size_t ()(php_stream, char, size_t)’ {aka ‘long unsigned int ()(_php_stream, char, long unsigned int)’} to ‘ssize_t ()(php_stream, char, size_t)’ {aka ‘long int ()(_php_stream, char, long unsigned int)’} [-fpermissive]

201 | sqlsrv_stream_read, | ^~~~~~~~~~~~~~~~~~ | | | size_t ()(php_stream, char, size_t) {aka long unsigned int ()(_php_stream, char, long unsigned int)}

make: [Makefile:204: shared/core_stream.lo] Error 1 make: Waiting for unfinished jobs....

g++ -std=c++11 -I. -I/var/tmp/pamac-build-joel/php-sqlsrv/src/sqlsrv-5.6.1 -DPHP_ATOM_INC -I/var/tmp/pamac-build-joel/php-sqlsrv/src/sqlsrv-5.6.1/include -I/var/tmp/pamac-build-joel/php-sqlsrv/src/sqlsrv-5.6.1/main -I/var/tmp/pamac-build-joel/php-sqlsrv/src/sqlsrv-5.6.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/var/tmp/pamac-build-joel/php-sqlsrv/src/sqlsrv-5.6.1/shared -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /var/tmp/pamac-build-joel/php-sqlsrv/src/sqlsrv-5.6.1/shared/core_util.cpp -fPIC -DPIC -o shared/.libs/core_util.o

==> ERROR: A failure occurred in build().


ClubMate commented on 2019-09-22 18:22

Install error: Failure while downloading

kvasthval commented on 2018-12-11 13:22

Is anybody else suddenly getting compile errors, both for this and the PDO version? /usr/include/php/Zend/zend_types.h:792:24: error: expected id-expression before 'do'

andoni commented on 2018-03-23 19:47

Production release for PHP drivers for SQL Server on Mac OS X,Linux, and Windows v5.20

A new stable version released.


mtorromeo commented on 2017-09-22 15:48

Since 4.3.0 was released as stable, I will be tracking only stable releases.
You can create a new package which tracks the "devel" releases separately if you wish.

andoni commented on 2017-09-20 23:10

New 5.1.0-preview release

andoni commented on 2017-06-28 11:58

New 4.3.0rc1 version.



Also should delete preview from directories.

mtorromeo commented on 2017-04-14 11:48

I switched to sources published on and with this change the package now only contains the sqlsrv extension. The pdo_sqlsrv extension is provided by the php-pdo_sqlsrv package.

andoni commented on 2017-03-16 11:43

New preview version 4.1.7 - Some bugfixes and MacOS support

diff --git a/PKGBUILD b/PKGBUILD
index 485d6a1..86603a2 100644
@@ -2,23 +2,23 @@
# Maintainer: Massimiliano Torromeo <>

pkgdesc="Microsoft Drivers for PHP for SQL Server"
arch=('i686' 'x86_64')
depends=('php' 'msodbcsql')

build() {
- cd "$srcdir"/msphpsql-$pkgver/source
+ cd "$srcdir"/msphpsql-${pkgver}-preview/source

for ext in sqlsrv pdo_sqlsrv; do
- cd "$srcdir"/msphpsql-$pkgver/source/$ext
+ cd "$srcdir"/msphpsql-${pkgver}-preview/source/$ext
./configure --prefix=/usr
@@ -27,7 +27,7 @@ build() {

package() {
for ext in sqlsrv pdo_sqlsrv; do
- cd "$srcdir"/msphpsql-$pkgver/source/$ext
+ cd "$srcdir"/msphpsql-${pkgver}-preview/source/$ext
make INSTALL_ROOT="$pkgdir" install

@@ -36,5 +36,5 @@ package() {
install -dm0755 etc/php/conf.d/
echo -e "\" > etc/php/conf.d/sqlsrv.ini

- install -Dm0644 "$srcdir"/msphpsql-$pkgver/LICENSE usr/share/licenses/$pkgname/LICENSE
+ install -Dm0644 "$srcdir"/msphpsql-${pkgver}-preview/LICENSE usr/share/licenses/$pkgname/LICENSE