Fixed output and skipifs
This commit is contained in:
parent
b2f7b206c5
commit
82be8141a3
|
@ -7,7 +7,7 @@ do not need to be encrypted
|
|||
--ENV--
|
||||
PHPT_EXEC=true
|
||||
--SKIPIF--
|
||||
<?php require('skipif.inc'); ?>
|
||||
<?php require('skipif_mid-refactor.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once("MsSetup.inc");
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
--TEST--
|
||||
Test new connection keyword ColumnEncryption
|
||||
--SKIPIF--
|
||||
<?php require('skipif.inc'); ?>
|
||||
<?php require('skipif_mid-refactor.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once("MsSetup.inc");
|
||||
|
|
|
@ -7,7 +7,8 @@ killing the connection and then not freeing it. The latter case is the only one
|
|||
that should fail. Finally, execute two queries in two threads on a recovered
|
||||
non-MARS connection. This should fail too.
|
||||
--SKIPIF--
|
||||
<?php require('skipif_protocol_not_tcp.inc');
|
||||
<?php require('skipif_mid-refactor.inc');
|
||||
require('skipif_protocol_not_tcp.inc');
|
||||
require('skipif_version_less_than_2k14.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
--TEST--
|
||||
Test the connection resiliency keywords ConnectRetryCount and ConnectRetryInterval and their ranges of acceptable values
|
||||
--SKIPIF--
|
||||
<?php require('skipif_version_less_than_2k14.inc'); ?>
|
||||
<?php require('skipif_mid-refactor.inc');
|
||||
require('skipif_version_less_than_2k14.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once( "MsSetup.inc" );
|
||||
|
|
|
@ -5,7 +5,8 @@ Prepare a statement, break the connection, and execute the statement. Then
|
|||
test transactions by breaking the connection before beginning a transaction
|
||||
and in the middle of the transaction. The latter case should fail.
|
||||
--SKIPIF--
|
||||
<?php require('skipif_protocol_not_tcp.inc');
|
||||
<?php require('skipif_mid-refactor.inc');
|
||||
require('skipif_protocol_not_tcp.inc');
|
||||
require('skipif_version_less_than_2k14.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
|
|
@ -4,7 +4,8 @@ Test connection resiliency timeouts
|
|||
1. Connect with ConnectRetryCount equal to 0.
|
||||
2. Reconnect with the default value of ConnectRetryCount(1).
|
||||
--SKIPIF--
|
||||
<?php require('skipif_protocol_not_tcp.inc');
|
||||
<?php require('skipif_mid-refactor.inc');
|
||||
require('skipif_protocol_not_tcp.inc');
|
||||
require('skipif_version_less_than_2k14.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
|
|
@ -11,16 +11,19 @@ if ($conn === false) {
|
|||
}
|
||||
|
||||
// Get SQL Server Version
|
||||
$stmt = $conn->query( "SELECT @@VERSION" );
|
||||
if ($stmt) {
|
||||
$ver_string = $stmt->fetch(PDO::FETCH_NUM)[0];
|
||||
} else {
|
||||
die( "skip Could not fetch SQL Server version during SKIPIF.");
|
||||
}
|
||||
// Exclude this check if running on Azure
|
||||
if (!$daasMode) {
|
||||
$stmt = $conn->query( "SELECT @@VERSION" );
|
||||
if ($stmt) {
|
||||
$ver_string = $stmt->fetch(PDO::FETCH_NUM)[0];
|
||||
} else {
|
||||
die( "skip Could not fetch SQL Server version during SKIPIF.");
|
||||
}
|
||||
|
||||
$version = explode(' ', $ver_string);
|
||||
$version = explode(' ', $ver_string);
|
||||
|
||||
if ($version[3] < '2014') {
|
||||
die("skip Wrong version of SQL Server, 2014 or later required");
|
||||
if ($version[3] < '2014') {
|
||||
die("skip Wrong version of SQL Server, 2014 or later required");
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -189,8 +189,8 @@ Array
|
|||
\[SQLSTATE\] => 08S02
|
||||
\[1\] => (10054|-1)
|
||||
\[code\] => (10054|-1)
|
||||
\[2\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\](TCP Provider: An existing connection was forcibly closed by the remote host\.\n|SMux Provider: Physical connection is not usable \[xFFFFFFFF\])
|
||||
\[message\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\](TCP Provider: An existing connection was forcibly closed by the remote host\.\n|SMux Provider: Physical connection is not usable \[xFFFFFFFF\])
|
||||
\[2\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\](TCP Provider: An existing connection was forcibly closed by the remote host\.\n|SMux Provider: Physical connection is not usable \[xFFFFFFFF\])\.
|
||||
\[message\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\](TCP Provider: An existing connection was forcibly closed by the remote host\.\n|SMux Provider: Physical connection is not usable \[xFFFFFFFF\])\.
|
||||
\)
|
||||
|
||||
\[1\] => Array
|
||||
|
|
Loading…
Reference in a new issue