php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47826 undefined symbol: sqlite3_enable_load_extension
Submitted: 2009-03-29 10:05 UTC Modified: 2009-03-29 21:34 UTC
From: oeriksson at mandriva dot com Assigned:
Status: Closed Package: SQLite related
PHP Version: 5.3.0RC1 OS: Mandriva Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: oeriksson at mandriva dot com
New email:
PHP Version: OS:

 

 [2009-03-29 10:05 UTC] oeriksson at mandriva dot com
Description:
------------
On Mandriva Linux Cooker I get:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/sqlite3.so' - /usr/lib/php/extensions/sqlite3.so: undefined symbol: sqlite3_enable_load_extension in Unknown on line 0

We have sqlite3-3.6.11

I noticed that SQLITE_OMIT_LOAD_EXTENSION is unset in main/php_config.h and should in this case be set to 1.


$ grep SQLITE_OMIT_LOAD_EXTENSION main/php_config.h
/* #undef SQLITE_OMIT_LOAD_EXTENSION */

Reproduce code:
---------------
Just running php-cli

Expected result:
----------------
It should work

Actual result:
--------------
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/sqlite3.so' - /usr/lib/php/extensions/sqlite3.so: undefined symbol: sqlite3_enable_load_extension in Unknown on line 0


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-29 17:42 UTC] scottmac@php.net
What configure line did you use?
 [2009-03-29 21:34 UTC] scottmac@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.

Noticed the error after looking at the code again.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 18 01:01:25 2021 UTC