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

From: Date: Tue, 17 Mar 2009 02:45:16 +0000
Subject: #47678 [Asn->Csd]: 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-134788@lists.php.net to get a copy of this message
ID: 47678 Updated by: scottmac@php.net Reported By: glen at delfi dot ee -Status: Assigned +Status: Closed Bug Type: SQLite related Operating System: PLD Linux PHP Version: 5.3CVS-2009-03-16 (snap) Assigned To: scottmac New Comment: 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. Patch is different from yours, when a feature isn't available the standard practice in PHP is to remove it from that build rather than have it error. Also by using the same define as the bundled library we can allow it to be disabled there too. Previous Comments: ------------------------------------------------------------------------ [2009-03-16 19:38:11] glen at delfi dot ee yep, against system library (external as you said) ps: there was small typo in patch, recheck the patch if you already downloaded it. ------------------------------------------------------------------------ [2009-03-16 19:22:19] scottmac@php.net I assume you're doing this against an external library? I'll need to look at a few other things that can be possibly omitted from the standard build. ------------------------------------------------------------------------ [2009-03-16 19:08:21] glen at delfi dot ee 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#134788) next »