From: adam at trachtenberg dot com Operating system: Mac OS X 10.3.3 PHP version: 5CVS-2004-04-09 (dev) PHP Bug Type: SQLite related Bug description: SQLite gets confused when opening empty filename
Description: ------------ Telling SQLite to open a file of NULL or "" causes it to think for a while and then report that the database is locked. The patch at: http://www.trachtenberg.com/patches/sqlite_open.txt Makes SQLite return false and provides an error message. (BTW, is strcmp(filename, "") the best way to do this? Reproduce code: --------------- sqlite_open(""); sqlite_open(NULL); Expected result: ---------------- Faster reply, better error message. Actual result: -------------- PHP Warning: sqlite_query(): database is locked -- Edit bug report at http://bugs.php.net/?id=27928&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27928&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27928&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27928&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27928&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27928&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27928&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27928&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27928&r=support Expected behavior: http://bugs.php.net/fix.php?id=27928&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27928&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27928&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27928&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27928&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27928&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27928&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27928&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27928&r=float