php.net |  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
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: nohn@php.net Assigned:
Status: Wont fix Package: SQLite related
PHP Version: 5CVS-2005-10-24 (snap) OS: Cygwin
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nohn@php.net
New email:
PHP Version: OS:

 

 [2005-10-24 12:31 UTC] nohn@php.net
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-24 12:34 UTC] tony2001@php.net
Please try it on real OS (i.e. not Cygwin).
The code works perfectly here.
 [2005-10-24 15:42 UTC] nohn@php.net
Be a bit constructive please.
 [2005-10-24 15:56 UTC] tony2001@php.net
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] wez@php.net
For the record, we don't support cygwin builds of PHP.
 [2005-10-24 17:34 UTC] nohn@php.net
It works on Win32.
 [2005-10-31 16:42 UTC] sniper@php.net
Using cygwin is not and will not be supported. You're on your own with that.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC