# sqlite_popen bug?

- Thread: https://externals.io/message/3338
- Original archive: https://news-web.php.net/php.internals/3338
- Started by Marc Boeren on 2003-07-09T15:21:00+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3338 — Marc Boeren — 2003-07-09T15:21:00+00:00

URL: https://externals.io/message/3338#3338

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.
