revert the test and changed appveyor
This commit is contained in:
parent
aa1cd4d178
commit
568d13aef4
11
appveyor.yml
11
appveyor.yml
|
@ -116,16 +116,7 @@ install:
|
|||
#- ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/php-sdk/deps-' + ${env:PHP_DEPSVER} + '-vc' + ${env:PHP_VC} + '-' + ${env:BUILD_PLATFORM} + '.7z', ${env:APPVEYOR_BUILD_FOLDER} + '\..\deps.7z')
|
||||
- echo Downloading MSODBCSQL 13.1
|
||||
- ps: (new-object net.webclient).DownloadFile('https://download.microsoft.com/download/D/5/E/D5EEF288-A277-45C8-855B-8E2CB7E25B96/' + ${env:BUILD_PLATFORM} + '/msodbcsql.msi', 'msodbcsql.msi')
|
||||
- ps: msiexec /i msodbcsql.msi /quiet /qn /norestart
|
||||
- echo Downloading MS Online Services Sign-In Assistant
|
||||
- ps: >-
|
||||
If ($env:BUILD_PLATFORM -Match "x64") {
|
||||
(new-object net.webclient).DownloadFile('https://download.microsoft.com/download/7/1/E/71EF1D05-A42C-4A1F-8162-96494B5E615C/' + 'msoidcli_64bit.msi', 'msoidcli_64bit.msi');
|
||||
msiexec /i msoidcli_64bit.msi /quiet /qn /norestart
|
||||
} Else {
|
||||
(new-object net.webclient).DownloadFile('https://download.microsoft.com/download/7/1/E/71EF1D05-A42C-4A1F-8162-96494B5E615C/' + 'msoidcli_32bit.msi', 'msoidcli_32bit.msi');
|
||||
msiexec /i msoidcli_32bit.msi /quiet /qn /norestart
|
||||
}
|
||||
- ps: msiexec /i msodbcsql.msi /quiet /qn
|
||||
- cd ..
|
||||
- cd
|
||||
- 7z x -y php-sdk-binary-tools-20110915.zip -o%PHP_SDK%
|
||||
|
|
|
@ -6,21 +6,7 @@ Test the Authentication keyword and its accepted values: SqlPassword and ActiveD
|
|||
<?php
|
||||
require_once("autonomous_setup.php");
|
||||
|
||||
$connectionInfo = array( "UID"=>$username, "PWD"=>$password, "Authentication"=>"SqlPassword" );
|
||||
$conn = sqlsrv_connect( $serverName, $connectionInfo );
|
||||
if( $conn === false )
|
||||
{
|
||||
echo "Failed to connect without TrustServerCertificate!\n";
|
||||
print_r( sqlsrv_errors() );
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Connected successfully with Authentication=SqlPassword but without TrustServerCertificate.\n";
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
/*
|
||||
$connectionInfo = array( "UID"=>$username, "PWD"=>$password,
|
||||
$connectionInfo = array( "Database"=>"master", "UID"=>$username, "PWD"=>$password,
|
||||
"Authentication"=>"SqlPassword", "TrustServerCertificate"=>true );
|
||||
|
||||
$conn = sqlsrv_connect( $serverName, $connectionInfo );
|
||||
|
|
Loading…
Reference in a new issue