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

tests/test_066_TableObjects.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
$server = db2_server_info( $conn );
1313

14-
$result = db2_tables($conn, NULL, strtoupper($user), 'ANIM%');
14+
$result = @db2_tables($conn, NULL, strtoupper($user), 'ANIM%');
1515

1616
$t[0]=""; $t[1]=""; $t[2]=""; $t[3]="";
1717
while ($row = db2_fetch_object($result)) {

tests/test_10931_LcaseTableName.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if ($conn) {
1818
$sql = "create table \"TEST\".\"test_10931\" ( \"id\" INTEGER not null generated BY DEFAULT AS identity (NOCACHE, INCREMENT BY 1), \"title\" VARCHAR(50), \"created\" TIMESTAMP DEFAULT CURRENT TIMESTAMP, constraint P_USERS_U1 primary key (\"id\"))";
1919
db2_exec($conn, $sql);
2020

21-
$stmt = db2_columns ($conn ,null , 'TEST' , 'test_10931' , '%' );
21+
$stmt = @db2_columns ($conn ,null , 'TEST' , 'test_10931' , '%' );
2222
if ( $stmt )
2323
{
2424
while ($rowC = db2_fetch_assoc($stmt))

tests/test_190_ColumnsTable_01.phpt

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

1212
if ($conn)
1313
{
14-
$result = db2_columns($conn,NULL,NULL,"EMPLOYEE");
14+
$result = @db2_columns($conn,NULL,NULL,"EMPLOYEE");
1515
while ($row = db2_fetch_array($result))
1616
{
1717
$str = $row[1] ."/". $row[3];

tests/test_191_ColumnsTable_02.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require_once('connection.inc');
1010
$conn = db2_connect($db,$username,$password);
1111

1212
if ($conn) {
13-
$result = db2_columns($conn,NULL,NULL,"EMP_PHOTO");
13+
$result = @db2_columns($conn,NULL,NULL,"EMP_PHOTO");
1414
$i = 0;
1515
while ($row = db2_fetch_both($result)) {
1616
if ($row['COLUMN_NAME'] != 'EMP_ROWID' && $i < 3) {

tests/test_192_ColumnsTable_03.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require_once('connection.inc');
1010
$conn = db2_connect($db,$username,$password);
1111

1212
if ($conn) {
13-
$result = db2_columns($conn,NULL,strtoupper($username),"EMP_RESUME");
13+
$result = @db2_columns($conn,NULL,strtoupper($username),"EMP_RESUME");
1414
$i = 0;
1515
while ($row = db2_fetch_both($result)) {
1616
if ($row['COLUMN_NAME'] != 'EMP_ROWID' && $i < 3) {

tests/test_197_StatisticsIndexes.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if ($conn) {
1515
$rc = db2_exec($conn, "CREATE INDEX index1 ON index_test (id)");
1616

1717
echo "Test first index table:\n";
18-
$result = db2_statistics($conn,NULL,NULL,"INDEX_TEST",1);
18+
$result = @db2_statistics($conn,NULL,NULL,"INDEX_TEST",1);
1919
$row = db2_fetch_array($result);
2020
echo $row[2] . "\n"; // TABLE_NAME
2121
echo $row[3] . "\n"; // NON_UNIQUE
@@ -28,15 +28,15 @@ if ($conn) {
2828
$rc = db2_exec($conn, "CREATE INDEX index2 ON index_test2 (data)");
2929

3030
echo "Test second index table:\n";
31-
$result = db2_statistics($conn,NULL,NULL,"INDEX_TEST2",1);
31+
$result = @db2_statistics($conn,NULL,NULL,"INDEX_TEST2",1);
3232
$row = db2_fetch_array($result);
3333
echo $row[2] . "\n"; // TABLE_NAME
3434
echo $row[3] . "\n"; // NON_UNIQUE
3535
echo $row[5] . "\n"; // INDEX_NAME
3636
echo $row[8] . "\n"; // COLUMN_NAME
3737

3838
echo "Test non-existent table:\n";
39-
$result = db2_statistics($conn,NULL,NULL,"NON_EXISTENT_TABLE",1);
39+
$result = @db2_statistics($conn,NULL,NULL,"NON_EXISTENT_TABLE",1);
4040
$row = db2_fetch_array($result);
4141
if ($row) {
4242
echo "Non-Empty\n";

tests/test_9173_ProcedurePersistentConn.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require_once('connection.inc');
1212
$conn = db2_pconnect($database, $user, $password);
1313

1414
if ($conn) {
15-
$stmt = db2_procedures($conn, NULL, 'SYS%', '%%');
15+
$stmt = @db2_procedures($conn, NULL, 'SYS%', '%%');
1616

1717
$row = db2_fetch_assoc($stmt);
1818
var_dump($row);

0 commit comments

Comments
 (0)