ID:               34966
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         SQLite related
 Operating System: Cygwin
 PHP Version:      5CVS-2005-10-24 (snap)
 New Comment:

It works on Win32.


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

[2005-10-24 16:52:33] [EMAIL PROTECTED]

For the record, we don't support cygwin builds of PHP.

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

[2005-10-24 15:56:17] [EMAIL PROTECTED]

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 15:42:11] [EMAIL PROTECTED]

Be a bit constructive please.

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

[2005-10-24 12:34:11] [EMAIL PROTECTED]

Please try it on real OS (i.e. not Cygwin).
The code works perfectly here.

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

[2005-10-24 12:31:10] [EMAIL PROTECTED]

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



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


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

Reply via email to