#44983 [Opn->Bgs]: pdo sqlite old version in php 5.2.6
| From: | pajoye@php.net | Date: | Tue, 13 May 2008 20:54:22 +0000 |
| Subject: | #44983 [Opn->Bgs]: pdo sqlite old version in php 5.2.6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124956@lists.php.net to get a copy of this message | ||
ID: 44983
Updated by: pajoye@php.net
Reported By: alejosimon at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: SQLite related
Operating System: windows XP SP2
PHP Version: 5.2.6
-Assigned To:
+Assigned To: pajoye
New Comment:
An error was introduced in 5.2.5 (typo), the version actually used was
3.3.7 just like in 5.2.6.
LibSqlite being bundled in PHP, we were wondering what went wrong, see
these two commits:
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/sqlite/VERSION?view=markup&pathrev=php_5_2_5
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/sqlite/VERSION?view=markup&pathrev=php_5_2_6
Yes, it can be confusing, thanks to Liz for the quick search in the
commit logs :)
Previous Comments:
------------------------------------------------------------------------
[2008-05-13 19:46:01] alejosimon at gmail dot com
Description:
------------
in the 5.2.6 php version inluded the PDO_sqlite ext version 3.3.7, and
the 5.2.5 php version the pdo sqlite driver version 3.3.17 ????
why????
single but very important question.
At. Alejo.
Reproduce code:
---------------
<?php
$db = new PDO( "sqlite::memory:" ) ;
$res = $db->query( "SELECT sqlite_version()" ) ;
print_r( $res->fetchAll() );
?>
Expected result:
----------------
Array ( [0] => Array ( [sqlite_version()] => 3.3.17undefined [0] =>
3.3.17undefined ) )
Actual result:
--------------
Array ( [0] => Array ( [sqlite_version()] => 3.3.7undefined [0] =>
3.3.7undefined ) )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44983&edit=1