From:             php at plouk dot net
Operating system: Linux debian
PHP version:      5.0.0b2 (beta2)
PHP Bug Type:     SQLite related
Bug description:  Use an sqlite db...

Description:
------------
This script isn't able to create a table in an existing database. Why? (No
error are detected and permissions on the database file seem all right)


#ls -l

-rw-rw-r--    1 nobody   nogroup       263 Nov 24 23:42 sqlite.php
-rw-rw-rw-    1 nobody   nogroup         0 Nov 24 22:45 test.db

Reproduce code:
---------------
<?php
//sqlite.php
$db=sqlite_open('test.db', 0666, $sqlite_err);

echo var_dump($db).'<BR />';
echo var_dump($sqlite_err).'<BR />';

$req="CREATE TABLE my_table (value INTEGER PRIMARY KEY)";

$res=sqlite_query($db,$req);

echo var_dump($res).'<BR />';

sqlite_close($db);
?>


Expected result:
----------------
A table

Actual result:
--------------
Nothing, the db file is always a 0 byte's file...

-- 
Edit bug report at http://bugs.php.net/?id=26389&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26389&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26389&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26389&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26389&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26389&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26389&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26389&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26389&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26389&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26389&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26389&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26389&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26389&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26389&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26389&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26389&r=float

Reply via email to