#47678 [Opn]: sqlite3 extension fails to load if sqlite is built without --enable-load-extens

From: Date: Mon, 16 Mar 2009 19:08:22 +0000
Subject: #47678 [Opn]: sqlite3 extension fails to load if sqlite is built without --enable-load-extens
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-134766@lists.php.net to get a copy of this message
 ID:               47678
 User updated by:  glen at delfi dot ee
 Reported By:      glen at delfi dot ee
 Status:           Open
 Bug Type:         SQLite related
 Operating System: PLD Linux
 PHP Version:      5.3CVS-2009-03-16 (snap)
 New Comment:

here's my patch to handle the situation:

http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/php-sqlite3-loadext.patch

http://php.net/manual/en/sqlite3.loadextension.php


Previous Comments:
------------------------------------------------------------------------

[2009-03-16 19:06:09] glen at delfi dot ee

Description:
------------
$ php -m >/dev/null
PHP Warning:  PHP Startup: Unable to load dynamic 
library '/usr/lib/php/sqlite3.so' - /usr/lib/php/sqlite3.so: 
undefined symbol: sqlite3_load_extension in Unknown on line 0


Expected result:
----------------
should the whole method be disabled if system sqlite doesn't support 
it, or rather php method return false (failure?):

public bool SQLite3::loadExtension( string $shared_library)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47678&edit=1



Thread (5 messages)

« previous php.bugs (#134766) next »