File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -261,12 +261,14 @@ jobs:
261
261
$env:VERSION=type sha256sum.txt | where { $_ -match "php-($(phpVersion)\.\d+)-src" } | foreach { $matches[1] }
262
262
Write-Host "Latest PHP $(phpVersion) is ${env:VERSION}"
263
263
cd $(Build.SourcesDirectory)/buildscripts/
264
- python builddrivers.py --PHPVER=${env:VERSION} --ARCH=x64 --THREAD=nts --SOURCE=$(Build.SourcesDirectory)/source --TESTING --NO_RENAME
264
+ python builddrivers.py --PHPVER=${env:VERSION} --DRIVER=sqlsrv --ARCH=x64 --THREAD=nts --SOURCE=$(Build.SourcesDirectory)/source --TESTING --NO_RENAME
265
+ dir *sqlsrv*.dll
266
+ python builddrivers.py --PHPVER=${env:VERSION} --DRIVER=pdo_sqlsrv --ARCH=x64 --THREAD=nts --SOURCE=$(Build.SourcesDirectory)/source --TESTING --NO_RENAME
265
267
cp php-sdk\phpdev\vc15\x64\php-${env:VERSION}-src\run-tests.php $(Build.SourcesDirectory)\test\functional\sqlsrv
266
268
cp php-sdk\phpdev\vc15\x64\php-${env:VERSION}-src\run-tests.php $(Build.SourcesDirectory)\test\functional\pdo_sqlsrv
267
269
dir *sqlsrv*.dll
268
270
cp *sqlsrv*.dll C:\tools\php\ext\
269
- displayName: 'Build drivers for the latest version of PHP $(phpVersion)'
271
+ displayName: 'Build drivers (separately) for the latest version of PHP $(phpVersion)'
270
272
271
273
- script : |
272
274
echo extension=php_sqlsrv.dll >> C:\tools\php\php.ini
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if( PHP_SQLSRV != "no" ) {
27
27
if (CHECK_LIB("odbc32.lib", "sqlsrv") && CHECK_LIB("odbccp32.lib", "sqlsrv") &&
28
28
CHECK_LIB("version.lib", "sqlsrv") && CHECK_LIB("psapi.lib", "sqlsrv")&&
29
29
CHECK_HEADER_ADD_INCLUDE( "core_sqlsrv.h", "CFLAGS_SQLSRV", configure_module_dirname + "\\shared")) {
30
- if (PHP_PDO_SQLSRV == "no" || PHP_SQLSRV_SHARED ) {
30
+ if (PHP_SQLSRV_SHARED || PHP_PDO_SQLSRV == "no") {
31
31
ADD_SOURCES( configure_module_dirname + "\\shared", shared_src_class, "sqlsrv" );
32
32
}
33
33
CHECK_HEADER_ADD_INCLUDE("sql.h", "CFLAGS_SQLSRV_ODBC");
You can’t perform that action at this time.
0 commit comments