php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35469 SQLite is no more included and compiled in PHP
Submitted: 2005-11-29 11:02 UTC Modified: 2005-11-29 11:11 UTC
From: cbelin at free dot fr Assigned:
Status: Not a bug Package: SQLite related
PHP Version: 5.1.1 OS: Windows XP sp2
Private report: No CVE-ID: None
 [2005-11-29 11:02 UTC] cbelin at free dot fr
Description:
------------
Before upgrading to PHP version 5.1.1, SQLite was included in PHP distribution and enabled by default (and worked fine !).

Since version 5.1.1, SQLite doesn't seem to be included anymore. Enabling SQLite extension (php_sqlite.dll) in php.ini doesn't solve anything : it produces instead a PHP startup error.

Reproduce code:
---------------
<?php
echo sqlite_libversion();
?>

Expected result:
----------------
2.8.14

Actual result:
--------------
Without enabling SQLite extension (php_sqlite.dll) :

"Fatal error: Call to undefined function sqlite_libversion() in ... on line ..."


With SQLite extension enabled :

"PHP Warning: PHP Startup: Unable to load dynamic library '...\PHP\ext\php_sqlite.dll' - Le module sp?cifi? est introuvable. in Unknown on line 0"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-29 11:04 UTC] sniper@php.net
You need to also include php_pdo.dll in php.ini.
(php_sqlite.dll requires it to be loaded before it)

 [2005-11-29 11:11 UTC] cbelin at free dot fr
It works !

So, to enabled SQLite under PHP 5.1.1/Win32, you must put in your php.ini file the following lines :

extension=php_pdo.dll
extension=php_pdo_sqlite.dll
extension=php_sqlite.dll
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 00:03:19 2022 UTC