When columns are checked for their types prior to SQLite3Result::fetchArray(), the value of columnType() is always SQLITE3_NULL (5) in PHP < 7.3.16, and false since PHP 7.3.16 (causing an undefined offset 0 error because of php's type-juggling).
SQLite3 resolves types dynamically[1] which is possible only after a SQLite3Result::fetchArray() call.
When columns are checked for their types prior to
SQLite3Result::fetchArray()
, the value ofcolumnType()
is alwaysSQLITE3_NULL
(5) in PHP < 7.3.16, andfalse
since PHP 7.3.16 (causing anundefined offset 0
error because of php's type-juggling). SQLite3 resolves types dynamically[1] which is possible only after aSQLite3Result::fetchArray()
call.