-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt #11492
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
Comments
I can't seem to reproduce this. What's the Sqlite version on your system? var_dump($meta1);
var_dump($meta2); |
Sure. Here it goes:
|
@CViniciusSDias Can you check if you have sqlite compiled with $db = new PDO("sqlite::memory:");
$result = $db->query('PRAGMA compile_options');
print_r($result->fetchAll(PDO::FETCH_COLUMN)); or echo "PRAGMA compile_options;" | sqlite3 |
Sure. Result from PHP:
Result from sqlite3:
|
Is it possible to add this check as one of the tests pre-conditions, so it doesn't fail when this flag is disabled? |
--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");
?> |
I'll prep this PR. :-D |
* PHP-8.1: Fix GH-11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt
* PHP-8.2: Fix GH-11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.3.0-dev
Operating System
Ubuntu 20.04.6 LTS
The text was updated successfully, but these errors were encountered: