From: Christoph M. Becker Date: Sun, 12 Jul 2020 15:49:36 +0000 (+0200) Subject: Unbork tests for PDO_Firebird X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c7b5c0760f06dcebcdd0ef8008e61d19f8b1409;p=php Unbork tests for PDO_Firebird PDO_Firebird raises a warning regarding the unknown SQL syntax, which we have to silence to avoid run-tests.php to mark the test as borked. --- diff --git a/ext/pdo/tests/bug_79106.phpt b/ext/pdo/tests/bug_79106.phpt index 06e36aec74..42d96c5fcb 100644 --- a/ext/pdo/tests/bug_79106.phpt +++ b/ext/pdo/tests/bug_79106.phpt @@ -11,7 +11,7 @@ try { } catch (PDOException $e) { die('skip ' . $e->getMessage()); } -if ($db->query('SELECT 1 as "1"') === false) { +if (@$db->query('SELECT 1 as "1"') === false) { die('skip driver does not support quoted numeric identifiers'); } ?> diff --git a/ext/pdo/tests/bug_79106_collision.phpt b/ext/pdo/tests/bug_79106_collision.phpt index 8dcb9d997b..12ab609ed8 100644 --- a/ext/pdo/tests/bug_79106_collision.phpt +++ b/ext/pdo/tests/bug_79106_collision.phpt @@ -11,7 +11,7 @@ try { } catch (PDOException $e) { die('skip ' . $e->getMessage()); } -if ($db->query('SELECT 1 as "1"') === false) { +if (@$db->query('SELECT 1 as "1"') === false) { die('skip driver does not support quoted numeric identifiers'); } ?>