From: m dot boeren at guidance dot nl Operating system: win2k PHP version: 4.3.1 PHP Bug Type: SQLite related Bug description: sqlite_popen fails on second connection
Description: ------------ Hi, the following script doesn't work correctly: <?php $handle = sqlite_popen("sqlite.db"); var_dump($handle); $handle = sqlite_popen("sqlite.db"); var_dump($handle); ?> will produce $ ./php -f sqlitetest.php resource(1) of type (sqlite database (persistent)) resource(1) of type (Unknown) This also happens if I call sqlite_close($handle) between the popens... BTW, this is on the latest ext/sqlite copied to existing 4.3.1 source tree on a Windows box. Everything else I tested with sqlite works ok. Cheerio, Marc. Reproduce code: --------------- <?php $handle = sqlite_popen("sqlite.db"); var_dump($handle); $handle = sqlite_popen("sqlite.db"); var_dump($handle); ?> Expected result: ---------------- resource(1) of type (sqlite database (persistent)) resource(1) of type (sqlite database (persistent)) Actual result: -------------- resource(1) of type (sqlite database (persistent)) resource(1) of type (Unknown) -- Edit bug report at http://bugs.php.net/?id=24575&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24575&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24575&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24575&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24575&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24575&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24575&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24575&r=support Expected behavior: http://bugs.php.net/fix.php?id=24575&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24575&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24575&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24575&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24575&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24575&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24575&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24575&r=gnused