Skip to content

Commit 039dd0b

Browse files
CViniciusSDiasnielsdos
authored andcommitted
Fix phpGH-11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt
Closes phpGH-11494.
1 parent 8126825 commit 039dd0b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ PHP NEWS
88
- PCRE:
99
. Mangle PCRE regex cache key with JIT option. (mvorisek)
1010

11+
- PDO SQLite:
12+
. Fix GH-11492 (Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt).
13+
(KapitanOczywisty, CViniciusSDias)
14+
1115
- Session:
1216
. Removed broken url support for transferring session ID. (ilutov)
1317

ext/pdo_sqlite/tests/bug_42589.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ PDO SQLite Feature Request #42589 (getColumnMeta() should also return table name
33
--EXTENSIONS--
44
pdo
55
pdo_sqlite
6+
--SKIPIF--
7+
<?php
8+
$db = new PDO("sqlite::memory:");
9+
$options = $db->query('PRAGMA compile_options')->fetchAll(PDO::FETCH_COLUMN);
10+
if(!in_array('ENABLE_COLUMN_METADATA', $options, true))
11+
die("skip sqlite3 must be compiled with SQLITE_ENABLE_COLUMN_METADATA");
12+
?>
613
--FILE--
714
<?php
815
$db = new PDO("sqlite::memory:");

0 commit comments

Comments
 (0)