|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-19 22:45 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
Description: ------------ If SQlite3::__construct() fails (for example database file is not writeable), is not possible to get last error messages or code. Reproduce code: --------------- $sqlite = @new Sqlite3('/nonwriteablefile', SQLITE3_OPEN_CREATE); echo $sqlite->lastErrorMsg(); echo $sqlite->lastErrorCode(); Expected result: ---------------- Unable to open database: unable to open database file ??error code?? Actual result: -------------- Warning: SQLite3::lastErrorCode() [sqlite3.lasterrorcode]: The SQLite3 object has not been correctly initialised in %% on line %% Warning: SQLite3::lastErrorCode() [sqlite3.lasterrorcode]: The SQLite3 object has not been correctly initialised in %% on line %%