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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC