Skip to content

Commit b6e70e1

Browse files
committed
Fix PDO_Firebird tests which assume ERRMODE_SILENT
These have apparently been missed when PR 5388[1] had been merged. [1] <#5388>
1 parent 6c7b5c0 commit b6e70e1

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

ext/pdo_firebird/tests/bug_47415.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Bug #47415 PDO_Firebird segfaults when passing lowercased column name to bindCol
66
<?php
77
require 'testdb.inc';
88

9+
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
910
@$dbh->exec('DROP TABLE testz');
1011
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
1112

ext/pdo_firebird/tests/bug_48877.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ require("testdb.inc");
99

1010
$value = '2';
1111

12+
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
1213
@$dbh->exec('DROP TABLE testz');
1314
$dbh->exec('CREATE TABLE testz (A integer)');
1415
$dbh->exec("INSERT INTO testz VALUES ('1')");

ext/pdo_firebird/tests/bug_53280.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PDO_Firebird: bug 53280 segfaults if query column count is less than param count
77

88
require("testdb.inc");
99

10+
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
1011
@$dbh->exec('DROP TABLE testz');
1112
$dbh->exec('CREATE TABLE testz(A VARCHAR(30), B VARCHAR(30), C VARCHAR(30))');
1213
$dbh->exec("INSERT INTO testz VALUES ('A', 'B', 'C')");

ext/pdo_firebird/tests/rowCount.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PDO_Firebird: rowCount
77

88
require("testdb.inc");
99

10+
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
1011
@$dbh->exec('DROP TABLE testz');
1112
$dbh->exec('CREATE TABLE testz (A VARCHAR(10))');
1213
$dbh->exec("INSERT INTO testz VALUES ('A')");

0 commit comments

Comments
 (0)