mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Fixed test skip conditions.
# Same needs to be done to odbc, but it seems access is restricted # for "privileged" folks.
This commit is contained in:
parent
f5fb13103f
commit
c594f47f76
@ -4,7 +4,12 @@ require_once('connection.inc');
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$DB = new pdo($CONNECTION, $USER, $PASSWD);
|
||||
try {
|
||||
$DB = new pdo($CONNECTION, $USER, $PASSWD);
|
||||
} catch (Exception $tmp) {
|
||||
$DB = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
foreach(array('test','classtypes') as $name)
|
||||
{
|
||||
|
@ -4,7 +4,12 @@ require_once('connection.inc');
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$DB = new pdo($CONNECTION, $USER, $PASSWORD);
|
||||
try {
|
||||
$DB = new pdo($CONNECTION, $USER, $PASSWORD);
|
||||
} catch (Exception $tmp) {
|
||||
$DB = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
$DB->query('DROP TABLE test');
|
||||
$DB->query('DROP TABLE classtypes');
|
||||
|
@ -4,7 +4,12 @@ require_once('connection.inc');
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$DB = new pdo($CONNECTION);
|
||||
try {
|
||||
$DB = new pdo($CONNECTION);
|
||||
} catch (Exception $tmp) {
|
||||
$DB = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
foreach(array('test','classtypes') as $name)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user