Skip to content

Commit 4cee627

Browse files
authored
Merge pull request #26 from php/php81-ci
Make CI go on 8.1
2 parents 2880aa1 + 35356b6 commit 4cee627

17 files changed

+20
-19
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
ubuntu:
1212
strategy:
1313
matrix:
14-
version: ['7.3', '7.4', '8.0']
14+
version: ['7.3', '7.4', '8.0', '8.1']
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
@@ -83,6 +83,7 @@ jobs:
8383
# Note that connection.inc defaults should be mostly sufficient.
8484
run: |
8585
export TEST_PHP_ARGS="-n -d extension=modules/ibm_db2.so"
86+
export DISABLE_SKIP_CACHE=1
8687
export IBM_DB2_TEST_SKIP_CONNECT_FAILURE=0
8788
export DB2CLIINIPATH=$PWD
8889
export REPORT_EXIT_STATUS=1

tests/test_023_ColumnPrivileges.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $conn = db2_connect($database, $user, $password);
1111

1212
if ($conn != 0)
1313
{
14-
$stmt = db2_column_privileges($conn, NULL, NULL, 'ANIMALS');
14+
@$stmt = db2_column_privileges($conn, NULL, NULL, 'ANIMALS');
1515
$row = db2_fetch_array($stmt);
1616
print $row[2] . "\n";
1717
print $row[3] . "\n";

tests/test_024_ForeignKeys.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if ($conn != 0)
2020
$statement = "INSERT INTO test_foreign_keys VALUES (1)";
2121
$result = db2_exec($conn, $statement);
2222

23-
$stmt = db2_foreign_keys($conn, NULL, NULL, 'TEST_PRIMARY_KEYS');
23+
@$stmt = db2_foreign_keys($conn, NULL, NULL, 'TEST_PRIMARY_KEYS');
2424
$row = db2_fetch_array($stmt);
2525
echo $row[2] . "\n";
2626
echo $row[3] . "\n";

tests/test_025_PrimaryKeys.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if ($conn != 0)
2525
$statement = "INSERT INTO test_foreign_keys VALUES (1)";
2626
$result = db2_exec($conn, $statement);
2727

28-
$stmt = db2_primary_keys($conn, NULL, NULL, 'TEST_PRIMARY_KEYS');
28+
$stmt = @db2_primary_keys($conn, NULL, NULL, 'TEST_PRIMARY_KEYS');
2929
$row = db2_fetch_array($stmt);
3030
echo $row[2] . "\n";
3131
echo $row[3] . "\n";

tests/test_060_Tables_01.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $result = @db2_exec($conn, $create);
2626

2727
if ($conn)
2828
{
29-
$result = db2_tables($conn,NULL,strtoupper('t'));
29+
$result = @db2_tables($conn,NULL,strtoupper('t'));
3030
$i = 0;
3131
while ($row=db2_fetch_both($result))
3232
{

tests/test_061_Tables_02.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $result = @db2_exec($conn, $create);
2626

2727
if ($conn)
2828
{
29-
$result = db2_tables($conn,NULL,strtoupper('t'));
29+
$result = @db2_tables($conn,NULL,strtoupper('t'));
3030
$i = 0;
3131
while ($row = db2_fetch_both($result))
3232
{

tests/test_062_Tables_03.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $result = @db2_exec($conn, $create);
2727
if ($conn)
2828
{
2929
$schema = strtoupper('t');
30-
$result = db2_tables($conn,NULL,$schema);
30+
@$result = db2_tables($conn,NULL,$schema);
3131
$i = 0;
3232
while ($row = db2_fetch_both($result))
3333
{

tests/test_063_Tables_04.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require_once('connection.inc');
99

1010
$conn = db2_connect($db,$user,$password);
1111

12-
$result = db2_tables($conn, NULL, "SYSIBM", "", "VIEW");
12+
$result = @db2_tables($conn, NULL, "SYSIBM", "", "VIEW");
1313

1414
print_r ($result);
1515

tests/test_064_Tables_05.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $result = @db2_exec($conn, $create);
2424
$create = 'CREATE TABLE t.t4( c1 integer, c2 varchar(40))';
2525
$result = @db2_exec($conn, $create);
2626

27-
$result = db2_tables($conn, NULL, "T");
27+
$result = @db2_tables($conn, NULL, "T");
2828

2929
for ($i=0; $i<db2_num_fields($result); $i++)
3030
{

tests/test_065_FilterTableName.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $result = @db2_exec($conn, $create);
2424
$create = 'CREATE TABLE t.t4( c1 integer, c2 varchar(40))';
2525
$result = @db2_exec($conn, $create);
2626

27-
$result = db2_tables($conn, NULL, '%', "T3");
27+
$result = @db2_tables($conn, NULL, '%', "T3");
2828

2929
$columns = db2_num_fields($result);
3030

0 commit comments

Comments
 (0)