#34966 [NEW]: sqlite_open fails to create database
| From: | nohn@php.net | Date: | Mon, 24 Oct 2005 10:31:18 +0000 |
| Subject: | #34966 [NEW]: sqlite_open fails to create database | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-86971@lists.php.net to get a copy of this message | ||
From: nohn@php.net
Operating system: Cygwin
PHP version: 5CVS-2005-10-24 (snap)
PHP Bug Type: SQLite related
Bug description: sqlite_open fails to create database
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 bug report at http://bugs.php.net/?id=34966&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34966&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34966&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34966&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34966&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34966&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34966&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34966&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34966&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34966&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34966&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34966&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34966&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34966&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34966&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34966&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34966&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34966&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34966&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34966&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34966&r=mysqlcfg