ID: 24575
Updated by: [EMAIL PROTECTED]
Reported By: m dot boeren at guidance dot nl
-Status: Open
+Status: Assigned
Bug Type: SQLite related
Operating System: win2k
PHP Version: 4.3.1
-Assigned To:
+Assigned To: wez
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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