Skip to content

sqlite3_defensive.phpt fails with sqlite 3.44.0 #12633

Closed

Description

@andypost

Description

The ext/sqlite3/tests/sqlite3_defensive.phpt test started to fail after upgrade of SQLite to 3.44.0 on all arches

Resulted in this output:

TEST 12220/16282 [ext/sqlite3/tests/sqlite3_defensive.phpt]
========DIFF========
     bool(true)
003+ int(0)
     int(1)
004- int(1)
     
     Warning: SQLite3::querySingle(): Unable to prepare statement: 1, table sqlite_master may not be modified in %s on line %d
     bool(false)

PHP Version

PHP 8.1.25 and later

Operating System

Alpinelinux

Activity

  1. SakiTakamachi commented on Nov 8, 2023

    @SakiTakamachi
    Member

    I'll see this later.

  2. SakiTakamachi commented on Nov 8, 2023

    @SakiTakamachi
    Member

    Probably due to this change. It looks like the test needs to be modified.

    The SQLITE_DBCONFIG_DEFENSIVE setting now prevents PRAGMA writable_schema from being turned on. Previously writable_schema could be turned on, but would not actually allow the schema to be writable. Now it simply cannot be turned on.

    https://www.sqlite.org/releaselog/3_44_0.html

  3. added 3 commits that reference this issue on Nov 9, 2023
    2a4775d
    fbda6b5
    e6fef29
  4. added a commit that references this issue on Nov 9, 2023
    490b808
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions