|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34966 sqlite_open fails to create database
Submitted: 2005-10-24 12:31 UTC Modified: 2005-10-31 16:42 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Assigned:
Status: Wont fix Package: SQLite related
PHP Version: 5CVS-2005-10-24 (snap) OS: Cygwin
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2005-10-24 12:31 UTC]
sqlite_open fails to create database

Reproduce code:
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');
} else {

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-24 12:34 UTC]
Please try it on real OS (i.e. not Cygwin).
The code works perfectly here.
 [2005-10-24 15:42 UTC]
Be a bit constructive please.
 [2005-10-24 15:56 UTC]
I'll rephrase:
I would like to know if it's a Cygwin specific issue or not.
Please try it on Win32 (which you should have too apparently).
 [2005-10-24 16:52 UTC]
For the record, we don't support cygwin builds of PHP.
 [2005-10-24 17:34 UTC]
It works on Win32.
 [2005-10-31 16:42 UTC]
Using cygwin is not and will not be supported. You're on your own with that.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Oct 01 05:01:24 2023 UTC