php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44983 pdo sqlite old version in php 5.2.6
Submitted: 2008-05-13 19:46 UTC Modified: 2008-05-13 20:54 UTC
From: alejosimon at gmail dot com Assigned: pajoye (profile)
Status: Not a bug Package: SQLite related
PHP Version: 5.2.6 OS: windows XP SP2
Private report: No CVE-ID: None
 [2008-05-13 19:46 UTC] 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 ) )

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-13 20:54 UTC] pajoye@php.net
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 :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC