Use VS2019 for php 8 in Windows in the build scripts (#1149)
This commit is contained in:
parent
ecbd53f712
commit
64e8ddc855
|
@ -101,15 +101,10 @@ class BuildUtil(object):
|
||||||
def compiler_version(self, sdk_dir):
|
def compiler_version(self, sdk_dir):
|
||||||
"""Return the appropriate compiler version based on PHP version."""
|
"""Return the appropriate compiler version based on PHP version."""
|
||||||
if self.vc == '':
|
if self.vc == '':
|
||||||
VC = 'vc14'
|
VC = 'vc15'
|
||||||
version = self.version_label()
|
version = self.version_label()
|
||||||
if version >= '72': # Compiler version for PHP 7.2 or above
|
if version == '8': # Compiler version for PHP 8.0 or above
|
||||||
VC = 'vc15'
|
VC = 'vs16'
|
||||||
if version == '74':
|
|
||||||
# Compiler version for PHP 7.4 or above
|
|
||||||
# Can be compiled using VS 2017 or VS 2019
|
|
||||||
print('Checking compiler versions...')
|
|
||||||
VC = self.determine_compiler(sdk_dir, 15)
|
|
||||||
self.vc = VC
|
self.vc = VC
|
||||||
print('Compiler: ' + self.vc)
|
print('Compiler: ' + self.vc)
|
||||||
return self.vc
|
return self.vc
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
a variable bound to a column in a result set
|
a variable bound to a column in a result set
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
after a variable is bound, changing the value changes the value passed in the query
|
after a variable is bound, changing the value changes the value passed in the query
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
accesses an output parameter
|
accesses an output parameter
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
uses an input/output parameter
|
uses an input/output parameter
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
after a value $contact is bound, changing the value does not change the value passed in the query
|
after a value $contact is bound, changing the value does not change the value passed in the query
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
closes the cursor
|
closes the cursor
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
returns the number of columns in a result set for 3 queries
|
returns the number of columns in a result set for 3 queries
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
displays a prepared statement
|
displays a prepared statement
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
shows the error code of a SQL query with a mispelled table
|
shows the error code of a SQL query with a mispelled table
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
$conn = new PDO( "sqlsrv:server=$server; Database = $databaseName", "$uid", "$pwd");
|
$conn = new PDO( "sqlsrv:server=$server; Database = $databaseName", "$uid", "$pwd");
|
||||||
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||||
$stmt = $conn->prepare('SELECT * FROM Person.Addressx');
|
$stmt = $conn->prepare('SELECT * FROM Person.Addressx');
|
||||||
|
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
@ -13,8 +14,8 @@ echo "Error Code: ";
|
||||||
print $stmt->errorCode();
|
print $stmt->errorCode();
|
||||||
|
|
||||||
// free the statement and connection
|
// free the statement and connection
|
||||||
$stmt=null;
|
unset($stmt);
|
||||||
$conn=null;
|
unset($conn);
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
Error Code: 42S02
|
Error Code: 42S02
|
|
@ -1,19 +1,20 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
reports the error info of a SQL statement with a mispelled table name
|
reports the error info of a SQL statement with a mispelled table name
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
$conn = new PDO( "sqlsrv:server=$server ; Database = $databaseName", "$uid", "$pwd");
|
$conn = new PDO( "sqlsrv:server=$server ; Database = $databaseName", "$uid", "$pwd");
|
||||||
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||||
$stmt = $conn->prepare('SELECT * FROM Person.Addressx');
|
$stmt = $conn->prepare('SELECT * FROM Person.Addressx');
|
||||||
|
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
print_r ($stmt->errorInfo());
|
print_r ($stmt->errorInfo());
|
||||||
|
|
||||||
// free the statement and connection
|
// free the statement and connection
|
||||||
$stmt=null;
|
unset($stmt);
|
||||||
$conn=null;
|
unset($conn);
|
||||||
?>
|
?>
|
||||||
--EXPECTREGEX--
|
--EXPECTREGEX--
|
||||||
Array
|
Array
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Executes a statement
|
Executes a statement
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
fetch with all fetch styles
|
fetch with all fetch styles
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
fetches the rows in a result set in an array
|
fetches the rows in a result set in an array
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
fetches a column in a row
|
fetches a column in a row
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
fetches the next row as an object
|
fetches the next row as an object
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
fetches the next row as an object of a user defined class
|
fetches the next row as an object of a user defined class
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
//create class of contactType
|
//create class of contactType
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves metadata for a column
|
retrieves metadata for a column
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
moves the cursor to the next result set and fetches results
|
moves the cursor to the next result set and fetches results
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
returns the number of rows added to a table; returns the number of rows in a result set when you specify a scrollable cursor
|
returns the number of rows added to a table; returns the number of rows in a result set when you specify a scrollable cursor
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
sets the query timeout attribute
|
sets the query timeout attribute
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
specifies the fetch mode before fetching
|
specifies the fetch mode before fetching
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
starts a transaction, insert 2 rows and commit the transaction
|
starts a transaction, insert 2 rows and commit the transaction
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
connect to a server and specify a database
|
connect to a server and specify a database
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
connect to a server, specifying the database later
|
connect to a server, specifying the database later
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
connect to a server, setting MARS to false
|
connect to a server, setting MARS to false
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,18 +1,19 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
reports the error code of querying a misspelled column
|
reports the error code of querying a misspelled column
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
$conn = new PDO( "sqlsrv:Server=$server ; Database = $databaseName ", "$uid", "$pwd");
|
$conn = new PDO( "sqlsrv:Server=$server ; Database = $databaseName ", "$uid", "$pwd");
|
||||||
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||||
$query = "SELECT * FROM Person.Address where Cityx = 'Essen'";
|
$query = "SELECT * FROM Person.Address where Cityx = 'Essen'";
|
||||||
|
|
||||||
$conn->query($query);
|
$conn->query($query);
|
||||||
print $conn->errorCode();
|
print $conn->errorCode();
|
||||||
|
|
||||||
//free the connection
|
//free the connection
|
||||||
$conn=null;
|
unset($conn);
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
42S22
|
42S22
|
|
@ -1,11 +1,12 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
reports the error info of querying a misspelled column
|
reports the error info of querying a misspelled column
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
$conn = new PDO( "sqlsrv:Server=$server ; Database = $databaseName ", "$uid", "$pwd");
|
$conn = new PDO( "sqlsrv:Server=$server ; Database = $databaseName ", "$uid", "$pwd");
|
||||||
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||||
$query = "SELECT * FROM Person.Address where Cityx = 'Essen'";
|
$query = "SELECT * FROM Person.Address where Cityx = 'Essen'";
|
||||||
|
|
||||||
$conn->query($query);
|
$conn->query($query);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
execute a delete and reports how many rows were deleted
|
execute a delete and reports how many rows were deleted
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
shows the PDO::ATR_ERRMODE attribute, before and after changing its value
|
shows the PDO::ATR_ERRMODE attribute, before and after changing its value
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
$conn = new PDO( "sqlsrv:Server=$server ; Database = $databaseName", "$uid", "$pwd");
|
$conn = new PDO( "sqlsrv:Server=$server ; Database = $databaseName", "$uid", "$pwd");
|
||||||
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||||
|
|
||||||
$attributes1 = array( "ERRMODE" );
|
$attributes1 = array( "ERRMODE" );
|
||||||
foreach ( $attributes1 as $val ) {
|
foreach ( $attributes1 as $val ) {
|
||||||
|
@ -13,7 +14,7 @@ foreach ( $attributes1 as $val ) {
|
||||||
var_dump ($conn->getAttribute( constant( "PDO::ATTR_$val" ) ));
|
var_dump ($conn->getAttribute( constant( "PDO::ATTR_$val" ) ));
|
||||||
}
|
}
|
||||||
|
|
||||||
$conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
|
|
||||||
$attributes1 = array( "ERRMODE" );
|
$attributes1 = array( "ERRMODE" );
|
||||||
foreach ( $attributes1 as $val ) {
|
foreach ( $attributes1 as $val ) {
|
||||||
|
@ -25,7 +26,7 @@ foreach ( $attributes1 as $val ) {
|
||||||
print_r($conn->getAttribute( PDO::ATTR_CLIENT_VERSION ));
|
print_r($conn->getAttribute( PDO::ATTR_CLIENT_VERSION ));
|
||||||
|
|
||||||
//free the connection
|
//free the connection
|
||||||
$conn=null;
|
unset($conn);
|
||||||
?>
|
?>
|
||||||
--EXPECTREGEX--
|
--EXPECTREGEX--
|
||||||
PDO::ATTR_ERRMODE: int\(0\)
|
PDO::ATTR_ERRMODE: int\(0\)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
check if sqlsrv is in the array of available PDO drivers
|
check if sqlsrv is in the array of available PDO drivers
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$drivers = PDO::getAvailableDrivers();
|
$drivers = PDO::getAvailableDrivers();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
prepares a statement with parameter markers and forward-only (server-side) cursor
|
prepares a statement with parameter markers and forward-only (server-side) cursor
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
prepares a statement with a client-side cursor
|
prepares a statement with a client-side cursor
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
prepares a statement with a client-side cursor and specifies scroll type to buffered
|
prepares a statement with a client-side cursor and specifies scroll type to buffered
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
default query; query for a column; query with a new class; query into an existing class
|
default query; query for a column; query with a new class; query into an existing class
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
insert with quoted parameters
|
insert with quoted parameters
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
sets to PDO::ATTR_ERRMODE
|
sets to PDO::ATTR_ERRMODE
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
$conn = new PDO( "sqlsrv:server=$server ; Database = $databaseName", "$uid", "$pwd");
|
$conn = new PDO( "sqlsrv:server=$server ; Database = $databaseName", "$uid", "$pwd");
|
||||||
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||||
|
|
||||||
$attributes1 = array( "ERRMODE" );
|
$attributes1 = array( "ERRMODE" );
|
||||||
foreach ( $attributes1 as $val ) {
|
foreach ( $attributes1 as $val ) {
|
||||||
|
@ -22,7 +23,7 @@ sets to PDO::ATTR_ERRMODE
|
||||||
}
|
}
|
||||||
|
|
||||||
//free the connection
|
//free the connection
|
||||||
$conn=null;
|
unset($conn);
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
PDO::ATTR_ERRMODE: int(0)
|
PDO::ATTR_ERRMODE: int(0)
|
||||||
|
|
|
@ -1,42 +1,45 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
sets to PDO::SQLSRV_ATTR_DIRECT_QUERY
|
sets to PDO::SQLSRV_ATTR_DIRECT_QUERY
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
$conn = new PDO("sqlsrv:Server=$server", "$uid", "$pwd");
|
$conn = new PDO("sqlsrv:Server=$server", "$uid", "$pwd");
|
||||||
$conn->setAttribute(constant('PDO::SQLSRV_ATTR_DIRECT_QUERY'), true);
|
$conn->setAttribute(constant('PDO::SQLSRV_ATTR_DIRECT_QUERY'), true);
|
||||||
|
|
||||||
$stmt1 = $conn->query("DROP TABLE #php_test_table");
|
$tableName = 'pdo_direct_query';
|
||||||
|
$tsql = "IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'" . $tableName . "') AND type in (N'U')) DROP TABLE $tableName";
|
||||||
|
|
||||||
$stmt2 = $conn->query("CREATE TABLE #php_test_table ([c1_int] int, [c2_int] int)");
|
$stmt1 = $conn->query($tsql);
|
||||||
|
$stmt2 = $conn->query("CREATE TABLE $tableName ([c1_int] int, [c2_int] int)");
|
||||||
|
|
||||||
$v1 = 1;
|
$v1 = 1;
|
||||||
$v2 = 2;
|
$v2 = 2;
|
||||||
|
|
||||||
$stmt3 = $conn->prepare("INSERT INTO #php_test_table (c1_int, c2_int) VALUES (:var1, :var2)");
|
$stmt3 = $conn->prepare("INSERT INTO $tableName (c1_int, c2_int) VALUES (:var1, :var2)");
|
||||||
|
|
||||||
if ($stmt3) {
|
if ($stmt3) {
|
||||||
$stmt3->bindValue(1, $v1);
|
$stmt3->bindValue(1, $v1);
|
||||||
$stmt3->bindValue(2, $v2);
|
$stmt3->bindValue(2, $v2);
|
||||||
|
|
||||||
if ($stmt3->execute())
|
if ($stmt3->execute()) {
|
||||||
echo "Execution succeeded\n";
|
echo "Execution succeeded\n";
|
||||||
else
|
} else {
|
||||||
echo "Execution failed\n";
|
echo "Execution failed\n";
|
||||||
}
|
}
|
||||||
else
|
} else {
|
||||||
var_dump($conn->errorInfo());
|
var_dump($conn->errorInfo());
|
||||||
|
}
|
||||||
|
|
||||||
$stmt4 = $conn->query("DROP TABLE #php_test_table");
|
$stmt4 = $conn->query("DROP TABLE $tableName");
|
||||||
|
|
||||||
// free the statements and connection
|
// free the statements and connection
|
||||||
$stmt1=null;
|
unset($stmt1);
|
||||||
$stmt2=null;
|
unset($stmt2);
|
||||||
$stmt3=null;
|
unset($stmt3);
|
||||||
$stmt4=null;
|
unset($stmt4);
|
||||||
$conn=null;
|
unset($conn);
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
Execution succeeded
|
Execution succeeded
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
call a stored procedure and retrieve the errorNumber that is returned
|
call a stored procedure and retrieve the errorNumber that is returned
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
call a stored procedure and retrieve the errorNumber that is returned
|
call a stored procedure and retrieve the errorNumber that is returned
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
call a stored procedure and retrieve the errorString that is returned
|
call a stored procedure and retrieve the errorString that is returned
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
4
test/bvt/pdo_sqlsrv/skipif.inc
Normal file
4
test/bvt/pdo_sqlsrv/skipif.inc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?php
|
||||||
|
if (!extension_loaded("pdo_sqlsrv")) {
|
||||||
|
die("skip Extension not loaded");
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
executes two queries as part of a transaction
|
executes two queries as part of a transaction
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
delete in a transaction
|
delete in a transaction
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
executes a query, then comsumes and counts results until reaches a specified amount. The remaining query results are then discarded.
|
executes a query, then comsumes and counts results until reaches a specified amount. The remaining query results are then discarded.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
cancels a statement then reuse.
|
cancels a statement then reuse.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
client information.
|
client information.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
closes a connection.
|
closes a connection.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
executes two queries as part of a transaction. If both queries are successful, the transaction is committed.
|
executes two queries as part of a transaction. If both queries are successful, the transaction is committed.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
disables the default error-handling behaviour using configure
|
disables the default error-handling behaviour using configure
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication. */
|
/* Connect to the local server using Windows Authentication. */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
disables the default error-handling behaviour using configure and returns warnings
|
disables the default error-handling behaviour using configure and returns warnings
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Turn off the default behavior of treating errors as warnings.
|
/* Turn off the default behavior of treating errors as warnings.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
creates and opens a connection using Windows Authentication.
|
creates and opens a connection using Windows Authentication.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
disables MARS support.
|
disables MARS support.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
specifies to retrieve date and time types as string when connecting.
|
specifies to retrieve date and time types as string when connecting.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves dates as string by specifying UTF-8 and ReturnDatesAsStrings when connecting.
|
retrieves dates as string by specifying UTF-8 and ReturnDatesAsStrings when connecting.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves UTF-8 encoded data by specifying the UTF-8 character set when making the connection
|
retrieves UTF-8 encoded data by specifying the UTF-8 character set when making the connection
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieve date as PHP type with ReturnDatesAsStrings off by default.
|
retrieve date as PHP type with ReturnDatesAsStrings off by default.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
displays errors that occur during a failed statement execution
|
displays errors that occur during a failed statement execution
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
executes a statement that updates a field.
|
executes a statement that updates a field.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
execute with datetime type in bind parameters.
|
execute with datetime type in bind parameters.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
execute with string type in bind parameters.
|
execute with string type in bind parameters.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieve a row of data.
|
retrieve a row of data.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves each row of a result set as an associative array.
|
retrieves each row of a result set as an associative array.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves each row of a result set as a numerically indexed array.
|
retrieves each row of a result set as a numerically indexed array.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves each row of a result set as a PHP object
|
retrieves each row of a result set as a PHP object
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves each row of a result set as an instance of the Product class defined in the script.
|
retrieves each row of a result set as an instance of the Product class defined in the script.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Define the Product class. */
|
/* Define the Product class. */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
creates a statement resource then retrieves and displays the field metadata
|
creates a statement resource then retrieves and displays the field metadata
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
creates a statement resource, executes a simple query, and free all resources associated with the statement
|
creates a statement resource, executes a simple query, and free all resources associated with the statement
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves a row of data
|
retrieves a row of data
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves datatime as string and nvarchar as stream.
|
retrieves datatime as string and nvarchar as stream.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves row as a stream specified as a character stream.
|
retrieves row as a stream specified as a character stream.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/*Connect to the local server using Windows Authentication and
|
/*Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieves dates as strings by specifying UTF-8 when fetching the string.
|
retrieves dates as strings by specifying UTF-8 when fetching the string.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
indicate if the result set has one or more rows.
|
indicate if the result set has one or more rows.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
first result is consumed without calling next_result, the next result is made available by calling next_result
|
first result is consumed without calling next_result, the next result is made available by calling next_result
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
executes a batch query that retrieves information, insert an entry, then again retrieves information
|
executes a batch query that retrieves information, insert an entry, then again retrieves information
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
retrieve all fields
|
retrieve all fields
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
num_rows with a ekyset cursor should work.
|
num_rows with a ekyset cursor should work.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
when there is a batch query, the number of rows is only available when use a client-side cursor.
|
when there is a batch query, the number of rows is only available when use a client-side cursor.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Prepares and executes a statement.
|
Prepares and executes a statement.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Prepares a statement and then re-execute it with different parameter values.
|
Prepares a statement and then re-execute it with different parameter values.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
binding of variables using prepare function
|
binding of variables using prepare function
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
server side cursor specified when preparing
|
server side cursor specified when preparing
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Query insert into a table
|
Query insert into a table
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Query update a field in a table
|
Query update a field in a table
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
updates the quantity in a table, the quantity and product ID are parameters in the UPDATE query.
|
updates the quantity in a table, the quantity and product ID are parameters in the UPDATE query.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
queries a call procedure with an in-out parameter.
|
queries a call procedure with an in-out parameter.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
queries a call to procedure with input and output parameters.
|
queries a call to procedure with input and output parameters.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to a server using Windows Authentication and
|
/* Connect to a server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
server side cursor specified when querying
|
server side cursor specified when querying
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
client side buffered cursor
|
client side buffered cursor
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
sqlsrv types are specified for the parameters in query.
|
sqlsrv types are specified for the parameters in query.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
insert stream.
|
insert stream.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
specify the UTF-8 character set when querying
|
specify the UTF-8 character set when querying
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Rolls back the current transaction on the specified connection and returns the connection to the auto-commit mode.
|
Rolls back the current transaction on the specified connection and returns the connection to the auto-commit mode.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Returns the number of rows modified by the last statement executed.
|
Returns the number of rows modified by the last statement executed.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Sends data from parameter streams to the server
|
Sends data from parameter streams to the server
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require('connect.inc');
|
require('connect.inc');
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Send stream data with SendStreamParamsAtExec turned off.
|
Send stream data with SendStreamParamsAtExec turned off.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication and
|
/* Connect to the local server using Windows Authentication and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Returns information about the server.
|
Returns information about the server.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Connect to the local server using Windows Authentication. */
|
/* Connect to the local server using Windows Authentication. */
|
||||||
|
|
7
test/bvt/sqlsrv/skipif.inc
Normal file
7
test/bvt/sqlsrv/skipif.inc
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if (!extension_loaded("sqlsrv")) {
|
||||||
|
die("skip extension not loaded");
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
call a stored procedure (SQLSRV Driver) and retrieve the errorNumber that is returned
|
call a stored procedure (SQLSRV Driver) and retrieve the errorNumber that is returned
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
<?php require('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
// Connect to the database
|
// Connect to the database
|
||||||
|
|
Loading…
Reference in a new issue