Skip to content

Fix some PDO tests #11186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Use correct Firebird SQL in tests"
This reverts commit dd949cd.
  • Loading branch information
tontonsb committed May 4, 2023
commit 1577d6c59937dd864b92f28e7d03843fa65f446d
4 changes: 1 addition & 3 deletions ext/pdo/tests/pdo_039.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pdo
<?php
$dir = getenv('REDIR_TEST_DIR');
if (false == $dir) die('skip no driver');
if (str_starts_with(getenv('PDOTEST_DSN'), "firebird")) die('xfail firebird driver does not behave as expected');
require_once $dir . 'pdo_test.inc';
PDOTest::skip();
?>
Expand Down Expand Up @@ -34,9 +35,6 @@ $query = 'SELECT 1';
if ($conn->getAttribute(PDO::ATTR_DRIVER_NAME) === 'oci') {
$query .= ' FROM DUAL';
}
if ($conn->getAttribute(PDO::ATTR_DRIVER_NAME) === 'firebird') {
$query .= ' FROM FROM RDB$DATABASE';
}
var_dump($conn->errorCode());
var_dump($conn->errorCode());

Expand Down