ID:               47141
 Updated by:       [email protected]
 Reported By:      ladislav at marek dot su
-Status:           Open
+Status:           Assigned
 Bug Type:         SQLite related
 Operating System: *
 PHP Version:      5.3CVS-2009-01-17 (snap)
-Assigned To:      
+Assigned To:      scottmac


Previous Comments:
------------------------------------------------------------------------

[2009-01-17 21:19:42] ladislav at marek dot su

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 %%


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47141&edit=1

Reply via email to