From: [EMAIL PROTECTED]
Operating system: RH-8.0
PHP version: 4.3.3RC4
PHP Bug Type: SQLite related
Bug description: sqlite appending one extra char at end of each table name
Description:
------------
The sqlite library is appending an extra character onto
the end of any specified table name. For example, if I
specify a table name of 'foo' for a query, sqlite looks for a table named
'fooo'. It takes the last character of the table name supplied, and
appends an extra one of those chars onto the end of the table name.
If I do a select and supply a table name of 'fo', sqlite will return data
from the table 'foo'.
Sqlite was installed with pear.
Reproduce code:
---------------
# The table 'foo' exists and has data in it.
# returns data.
if ($db = @sqlite_open('test.db', 0666, $sqliteerror)) {
$result = sqlite_query($db,'SELECT * from "fo');
var_dump(sqlite_fetch_array($result));
} else {
die ($sqliteerror);
}
# Changing the name to 'foo' returns a
# 'no such table' error
--
Edit bug report at http://bugs.php.net/?id=25179&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25179&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25179&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25179&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25179&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25179&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25179&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25179&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25179&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25179&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25179&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25179&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25179&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25179&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25179&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25179&r=gnused