Skip to content

Commit

Permalink
Fix GH-11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt
Browse files Browse the repository at this point in the history
Closes GH-11494.
  • Loading branch information
CViniciusSDias authored and nielsdos committed Jun 22, 2023
1 parent 8126825 commit 039dd0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS
Expand Up @@ -8,6 +8,10 @@ PHP NEWS
- PCRE:
. Mangle PCRE regex cache key with JIT option. (mvorisek)

- PDO SQLite:
. Fix GH-11492 (Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt).
(KapitanOczywisty, CViniciusSDias)

- Session:
. Removed broken url support for transferring session ID. (ilutov)

Expand Down
7 changes: 7 additions & 0 deletions ext/pdo_sqlite/tests/bug_42589.phpt
Expand Up @@ -3,6 +3,13 @@ PDO SQLite Feature Request #42589 (getColumnMeta() should also return table name
--EXTENSIONS--
pdo
pdo_sqlite
--SKIPIF--
<?php
$db = new PDO("sqlite::memory:");
$options = $db->query('PRAGMA compile_options')->fetchAll(PDO::FETCH_COLUMN);
if(!in_array('ENABLE_COLUMN_METADATA', $options, true))
die("skip sqlite3 must be compiled with SQLITE_ENABLE_COLUMN_METADATA");
?>
--FILE--
<?php
$db = new PDO("sqlite::memory:");
Expand Down

0 comments on commit 039dd0b

Please sign in to comment.