|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-24 12:34 UTC] tony2001@php.net
[2005-10-24 15:42 UTC] nohn@php.net
[2005-10-24 15:56 UTC] tony2001@php.net
[2005-10-24 16:52 UTC] wez@php.net
[2005-10-24 17:34 UTC] nohn@php.net
[2005-10-31 16:42 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 07:00:01 2025 UTC |
Description: ------------ sqlite_open fails to create database Reproduce code: --------------- <?php if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) { sqlite_query($db, 'CREATE TABLE foo (bar varchar(10))'); sqlite_query($db, "INSERT INTO foo VALUES ('fnord')"); $result = sqlite_query($db, 'select bar from foo'); var_dump(sqlite_fetch_array($result)); } else { die($sqliteerror); } ?> Expected result: ---------------- some db result Actual result: -------------- $ sapi/cli/php test.php Warning: sqlite_open(): unable to open database: /tmp/php5-200510240830/mysqlitedb in /tmp/php5-200510240830/test.php on line 2 unable to open database: /tmp/php5-200510240830/mysqlitedb