summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-07-12 18:14:35 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-07-12 18:15:56 +0200
commitb6e70e14bd30468f934dde324443665bd6a003a0 (patch)
treecef574b200b9b39291e7e7c324addb7ea36ce018
parent6c7b5c0760f06dcebcdd0ef8008e61d19f8b1409 (diff)
downloadphp-git-b6e70e14bd30468f934dde324443665bd6a003a0.tar.gz
Fix PDO_Firebird tests which assume ERRMODE_SILENT
These have apparently been missed when PR 5388[1] had been merged. [1] <https://github.com/php/php-src/pull/5388>
-rw-r--r--ext/pdo_firebird/tests/bug_47415.phpt1
-rw-r--r--ext/pdo_firebird/tests/bug_48877.phpt1
-rw-r--r--ext/pdo_firebird/tests/bug_53280.phpt1
-rw-r--r--ext/pdo_firebird/tests/rowCount.phpt1
4 files changed, 4 insertions, 0 deletions
diff --git a/ext/pdo_firebird/tests/bug_47415.phpt b/ext/pdo_firebird/tests/bug_47415.phpt
index 4b8c14d890..640c9d8bd5 100644
--- a/ext/pdo_firebird/tests/bug_47415.phpt
+++ b/ext/pdo_firebird/tests/bug_47415.phpt
@@ -6,6 +6,7 @@ Bug #47415 PDO_Firebird segfaults when passing lowercased column name to bindCol
<?php
require 'testdb.inc';
+$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
@$dbh->exec('DROP TABLE testz');
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
diff --git a/ext/pdo_firebird/tests/bug_48877.phpt b/ext/pdo_firebird/tests/bug_48877.phpt
index 85da7d4285..ad29ac4c43 100644
--- a/ext/pdo_firebird/tests/bug_48877.phpt
+++ b/ext/pdo_firebird/tests/bug_48877.phpt
@@ -9,6 +9,7 @@ require("testdb.inc");
$value = '2';
+$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
@$dbh->exec('DROP TABLE testz');
$dbh->exec('CREATE TABLE testz (A integer)');
$dbh->exec("INSERT INTO testz VALUES ('1')");
diff --git a/ext/pdo_firebird/tests/bug_53280.phpt b/ext/pdo_firebird/tests/bug_53280.phpt
index 645f7b3c87..744aa0df7e 100644
--- a/ext/pdo_firebird/tests/bug_53280.phpt
+++ b/ext/pdo_firebird/tests/bug_53280.phpt
@@ -7,6 +7,7 @@ PDO_Firebird: bug 53280 segfaults if query column count is less than param count
require("testdb.inc");
+$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
@$dbh->exec('DROP TABLE testz');
$dbh->exec('CREATE TABLE testz(A VARCHAR(30), B VARCHAR(30), C VARCHAR(30))');
$dbh->exec("INSERT INTO testz VALUES ('A', 'B', 'C')");
diff --git a/ext/pdo_firebird/tests/rowCount.phpt b/ext/pdo_firebird/tests/rowCount.phpt
index 81982e96b9..c7fb2634ae 100644
--- a/ext/pdo_firebird/tests/rowCount.phpt
+++ b/ext/pdo_firebird/tests/rowCount.phpt
@@ -7,6 +7,7 @@ PDO_Firebird: rowCount
require("testdb.inc");
+$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
@$dbh->exec('DROP TABLE testz');
$dbh->exec('CREATE TABLE testz (A VARCHAR(10))');
$dbh->exec("INSERT INTO testz VALUES ('A')");