Tracker: Bugs

5 No mention of dynamic extension loading - ID: 1833123
Last Update: Comment added ( kink )

Squirrelmail version: both 1.4.11 and 1.5.2
Webserver: apache 1.3
PHP: PHP 4.3.10-16
IMAP: Courier
Database: MySQL

Explanation:
I recently ran into something strange using mysql to store addressbooks and
preferences. If the mysql extension is not loaded in php.ini,
configtest.php shows errors when checking the dsn (mysql database support
not present!).

Squirrelmail however is still able to connect to mysql, which is a little
confusing. It turns out that squirrelmail uses Pear::DB which calls
PEAR::loadExtension to load the mysql.so dynamicly if needed.

This is not in the documentation and configtest.php could be adjusted to
mention or test things like this. I supplied a patch for configtest.php.

--

Sorry for not selecting Category or Group...i couldnt find a suitable
option :/.


walterh ( walter_huijbers ) - 2007-11-16 13:23

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 2 )

Date: 2007-12-16 16:37
Sender: kinkProject AdminAccepting Donations


Thanks! This has been applied to SVN now, very useful.


Date: 2007-11-16 13:26
Sender: walter_huijbers


I forgot to mention that the patch is written for revision 12767 of the
trunk (squirrelmail 1.5.2 SVN).


Attached File ( 1 )

Filename Description Download
configtest.diff configtest patch. adds enable_dl checking and mentions when dynamically loading db extension Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2007-12-16 16:37 kink
resolution_id None 2007-12-16 16:37 kink
close_date - 2007-12-16 16:37 kink
File Added 254597: configtest.diff 2007-11-16 13:23 walter_huijbers