From 521d8852c5d1f10249c8356ed860ce3b51f382af Mon Sep 17 00:00:00 2001 From: lcatoire Date: Fri, 10 Jul 2026 16:13:49 +0200 Subject: [PATCH] feat(sqlite3): documenter les constantes Sqlite3Stmt::EXPLAIN_MODE_* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout des trois constantes de classe introduites en PHP 8.5 : - EXPLAIN_MODE_PREPARED (0) : mode normal (pas d'EXPLAIN) - EXPLAIN_MODE_EXPLAIN (1) : équivalent de EXPLAIN - EXPLAIN_MODE_EXPLAIN_QUERY_PLAN (2) : équivalent de EXPLAIN QUERY PLAN Closes #832 --- reference/sqlite3/sqlite3stmt.xml | 61 +++++++++++++++++++++++++++++++ reference/sqlite3/versions.xml | 3 ++ 2 files changed, 64 insertions(+) diff --git a/reference/sqlite3/sqlite3stmt.xml b/reference/sqlite3/sqlite3stmt.xml index 60055cdcbb83..7a38e5e3febc 100644 --- a/reference/sqlite3/sqlite3stmt.xml +++ b/reference/sqlite3/sqlite3stmt.xml @@ -24,6 +24,26 @@ SQLite3Stmt + &Constants; + + const + int + SQLite3Stmt::EXPLAIN_MODE_PREPARED + 0 + + + const + int + SQLite3Stmt::EXPLAIN_MODE_EXPLAIN + 1 + + + const + int + SQLite3Stmt::EXPLAIN_MODE_EXPLAIN_QUERY_PLAN + 2 + + &Methods; @@ -36,6 +56,47 @@ + +
+ &reftitle.constants; + + + + SQLite3Stmt::EXPLAIN_MODE_PREPARED + + + The statement operates in normal prepared statement mode (no EXPLAIN). + Available as of PHP 8.5.0. + + + + + + SQLite3Stmt::EXPLAIN_MODE_EXPLAIN + + + The statement operates as if prefixed with EXPLAIN, + returning opcode information from the virtual machine. + Available as of PHP 8.5.0. + + + + + + SQLite3Stmt::EXPLAIN_MODE_EXPLAIN_QUERY_PLAN + + + The statement operates as if prefixed with EXPLAIN QUERY PLAN, + returning high-level query plan information. + Available as of PHP 8.5.0. + + + + + +
+ + &reference.sqlite3.entities.sqlite3stmt; diff --git a/reference/sqlite3/versions.xml b/reference/sqlite3/versions.xml index bf64ad3d6231..a9a0ccd3e983 100644 --- a/reference/sqlite3/versions.xml +++ b/reference/sqlite3/versions.xml @@ -32,6 +32,9 @@ + + +