#24575 [Asn->Csd]: sqlite_popen fails on second connection
| From: | wez@php.net | Date: | Sun, 13 Jul 2003 08:49:18 +0000 |
| Subject: | #24575 [Asn->Csd]: sqlite_popen fails on second connection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43884@lists.php.net to get a copy of this message | ||
ID: 24575
Updated by: wez@php.net
Reported By: m dot boeren at guidance dot nl
-Status: Assigned
+Status: Closed
Bug Type: SQLite related
Operating System: win2k
PHP Version: PECL 4_3
Assigned To: wez
New Comment:
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 http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-07-10 02:51:30] wez@php.net
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-10 02:24:05] m dot boeren at guidance dot nl
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 this bug report at http://bugs.php.net/?id=24575&edit=1