|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24575 sqlite_popen fails on second connection
Submitted: 2003-07-10 02:24 UTC Modified: 2005-04-30 05:45 UTC
From: m dot boeren at guidance dot nl Assigned: wez (profile)
Status: Closed Package: SQLite related
PHP Version: 4_3 (PECL_4_3) OS: win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: m dot boeren at guidance dot nl
New email:
PHP Version: OS:


 [2003-07-10 02:24 UTC] m dot boeren at guidance dot nl

the following script doesn't work correctly:

$handle = sqlite_popen("sqlite.db");
$handle = sqlite_popen("sqlite.db");

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:
$handle = sqlite_popen("sqlite.db");
$handle = sqlite_popen("sqlite.db");

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)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-10 02:51 UTC]
Seems that it is broken.

FYI: the 4.3.x compatible code can be obtained like this:

co -d sqlite -r PECL_4_3 pecl/sqlite

Will fix sometime today.
 [2003-07-13 03:49 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 14:01:29 2023 UTC