diff --git a/test/functional/pdo_sqlsrv/pdo_569_query_varcharmax.phpt b/test/functional/pdo_sqlsrv/pdo_569_query_varcharmax.phpt index 0d3617336..671cbc269 100644 --- a/test/functional/pdo_sqlsrv/pdo_569_query_varcharmax.phpt +++ b/test/functional/pdo_sqlsrv/pdo_569_query_varcharmax.phpt @@ -5,32 +5,23 @@ Verifies that the problem is no longer reproducible. --ENV-- PHPT_EXEC=true --SKIPIF-- - + --FILE-- $database, "UID" => $userName, "PWD" => $userPassword); -$conn = sqlsrv_connect($server, $options); -if ($conn === false) { - die("Error: could not connect during SKIPIF!"); -} - -if (!AE\isQualified($conn)) { - die("skip - AE feature not supported in the current environment."); -} -?> + --FILE-- $database, "UID" => $userName, "PWD" => $userPassword); +$conn = sqlsrv_connect($server, $options); +if ($conn === false) { + fatalError("Failed to connect to $server."); +} + +if (!AE\isQualified($conn)) { + echo "Done\n"; + return; +} +sqlsrv_close($conn); + // Now connect with ColumnEncryption enabled -$connectionOptions = array("Database" => $database, "UID" => $userName, "PWD" => $userPassword, 'ColumnEncryption' => 'Enabled'); +$connectionOptions = array_merge($options, array('ColumnEncryption' => 'Enabled')); $conn = sqlsrv_connect($server, $connectionOptions); if ($conn === false) { fatalError("Failed to connect to $server.");