Package Details: php-sqlsrv 5.9.0-1

Git Clone URL: https://aur.archlinux.org/php-sqlsrv.git (read-only, click to copy)
Package Base: php-sqlsrv
Description: Microsoft SQL Server Drivers for PHP.
Upstream URL: https://pecl.php.net/package/sqlsrv
Licenses: MIT
Submitter: mtorromeo
Maintainer: tompear
Last Packager: tompear
Votes: 6
Popularity: 0.000236
First Submitted: 2016-10-06 13:45
Last Updated: 2021-01-30 13:32

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

andoni commented on 2017-06-28 11:58

New 4.3.0rc1 version. https://github.com/Microsoft/msphpsql/releases

-pkgver=4.2.0
+pkgver=4.3.0RC1

-source=("https://pecl.php.net/get/sqlsrv-${pkgver}preview.tgz")
-sha256sums=('62778cc5e239469c2ad41c614aca1620afe2978c18f0b41236864b75c043124b')
+source=("https://pecl.php.net/get/sqlsrv-${pkgver}.tgz")
+sha256sums=('8efaee6f9a2a680333ea3bedf4f746ecaaa6654f48bc83cb9730f12b8dae1bf9')


Also should delete preview from directories.

mtorromeo commented on 2017-04-14 11:48

I switched to sources published on pecl.php.net 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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,23 @@
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=php-sqlsrv
-pkgver=4.1.6
+pkgver=4.1.7
pkgrel=1
pkgdesc="Microsoft Drivers for PHP for SQL Server"
arch=('i686' 'x86_64')
url="https://github.com/Microsoft/msphpsql"
license=('MIT')
depends=('php' 'msodbcsql')
-source=("https://github.com/Microsoft/msphpsql/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=('b4fbc2ac04090e016c2ee168622213cc4dde99f3f82a6b88608fee6dd1a54d0b')
+source=("https://github.com/Microsoft/msphpsql/archive/v$pkgver-preview.tar.gz")
+sha256sums=('66f2d47b4fbd451e515a392c2e6da6c0a12f96476bede1f55944b32b898cf58d')
backup=('etc/php/conf.d/sqlsrv.ini')

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

for ext in sqlsrv pdo_sqlsrv; do
- cd "$srcdir"/msphpsql-$pkgver/source/$ext
+ cd "$srcdir"/msphpsql-${pkgver}-preview/source/$ext
phpize
./configure --prefix=/usr
make
@@ -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
done

@@ -36,5 +36,5 @@ package() {
install -dm0755 etc/php/conf.d/
echo -e "extension=sqlsrv.so\nextension=pdo_sqlsrv.so" > 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
}

andoni commented on 2017-02-06 15:22

New version 4.1.6. Same codebase for Windows and Linux driver.

diff --git a/PKGBUILD b/PKGBUILD
index 9867fb3..a733e01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,23 @@
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=php-sqlsrv
-pkgver=4.0.8
+pkgver=4.1.6
pkgrel=1
pkgdesc="Microsoft Drivers for PHP for SQL Server PHP 7 Linux"
arch=('i686' 'x86_64')
url="https://github.com/Microsoft/msphpsql/tree/PHP-7.0-Linux"
license=('MIT')
depends=('php' 'msodbcsql')
-source=("https://github.com/Microsoft/msphpsql/archive/$pkgver-Linux/$pkgname-$pkgver.tar.gz")
-sha256sums=('09d6c0328111f47a85098441ae51a39409f2a7cf283e982eb0b73fe284a1e4d9')
+source=("https://github.com/Microsoft/msphpsql/archive/v$pkgver.tar.gz")
+sha256sums=('b4fbc2ac04090e016c2ee168622213cc4dde99f3f82a6b88608fee6dd1a54d0b')
backup=('etc/php/conf.d/sqlsrv.ini')

build() {
- cd "$srcdir"/msphpsql-$pkgver-Linux/source
+ cd "$srcdir"/msphpsql-$pkgver/source
sh packagize.sh

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

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

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

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

andoni commented on 2016-12-20 15:03

New 4.0.8 Version - Production Ready!

-pkgver=4.0.7
+pkgver=4.0.8

-sha256sums=('2feb763ee71642c49f3792e730928447b54c450999c522841f1c95cad46eb313')
+sha256sums=('09d6c0328111f47a85098441ae51a39409f2a7cf283e982eb0b73fe284a1e4d9')

mtorromeo commented on 2016-11-30 13:45

Fixed, thanks!

andoni commented on 2016-11-30 13:25

Gives me compilation error: configure: error: Cannot find SQLSRV headers

Now it is needed to run packagize.sh script before build to copy the headers.

diff --git a/PKGBUILD b/PKGBUILD
index 6fd9bfc..fc5302e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@

pkgname=php-sqlsrv
pkgver=4.0.7
-pkgrel=1
+pkgrel=2
pkgdesc="Microsoft Drivers for PHP for SQL Server PHP 7 Linux"
arch=('i686' 'x86_64')
url="https://github.com/Microsoft/msphpsql/tree/PHP-7.0-Linux"
@@ -13,6 +13,11 @@ source=("https://github.com/Microsoft/msphpsql/archive/$pkgver-Linux/$pkgname-$p
sha256sums=('2feb763ee71642c49f3792e730928447b54c450999c522841f1c95cad46eb313')
backup=('etc/php/conf.d/sqlsrv.ini')

+prepare() {
+ cd "$srcdir"/msphpsql-$pkgver-Linux/source
+ . ./packagize.sh
+}
+
build() {
for ext in sqlsrv pdo_sqlsrv; do
cd "$srcdir"/msphpsql-$pkgver-Linux/source/$ext

andoni commented on 2016-10-25 12:40

New release, version 4.0.6

-pkgver=4.0.5
-source=("https://github.com/Microsoft/msphpsql/archive/v$pkgver-Linux/$pkgname-$pkgver.tar.gz")
-sha256sums=('ddf9cc7aa82175bbb12c8d84eb5fb2d0e731d7a9be6cdfb571206018dcf9b1fc')
+pkgver=4.0.6
+source=("https://github.com/Microsoft/msphpsql/archive/$pkgver-Linux.tar.gz")
+sha256sums=('1b6d93c1ade5f71a1017122254437e9bd0f1cafffa3e1288a908a76fc8cc5f5a')