From 039dd0b4bde92465ddf514b0ed0c48131098df26 Mon Sep 17 00:00:00 2001 From: Vinicius Dias Date: Tue, 20 Jun 2023 21:02:15 -0300 Subject: [PATCH] Fix GH-11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt Closes GH-11494. --- NEWS | 4 ++++ ext/pdo_sqlite/tests/bug_42589.phpt | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/NEWS b/NEWS index 998c5c43014bd..0be28ce20d69a 100644 --- a/NEWS +++ b/NEWS @@ -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) diff --git a/ext/pdo_sqlite/tests/bug_42589.phpt b/ext/pdo_sqlite/tests/bug_42589.phpt index ef6b7fdfb8129..45c1fa0a221ca 100644 --- a/ext/pdo_sqlite/tests/bug_42589.phpt +++ b/ext/pdo_sqlite/tests/bug_42589.phpt @@ -3,6 +3,13 @@ PDO SQLite Feature Request #42589 (getColumnMeta() should also return table name --EXTENSIONS-- pdo pdo_sqlite +--SKIPIF-- +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--