Is there any particular reason that we are using the mysqli driver? I know that with PHP 5.0.3, the 'mysql' driver works fine against a MySQL 4.1.10+ db - they fixed the backwards compatibility issue. I don't know about php4, and I suppose for those people who are on php5 (<5.0.3) they might need it...
This wasn't particularly highly publicized, so not everyone is necessarily aware of it.
I guess if the db abstraction is handling it, it doesn't matter.
j.
On Wed, 26 Oct 2005 12:36:23 -0400, "Adam D. Oliver" Adam.Oliver@fblaw.com wrote:
I'm running the 20051021 build on PHP 5 and MySQLi. Working fine so far. I do not have a lot of people to test it. I had to make the following changes.
Insert the following after the mysql case ending on line 174 of rcube_db.inc
case 'mysqli': return mysqli_insert_id($this->db_handle->connection);
In db.inc.php make this change to line 21
$rcmail_config['db_dsnw'] = 'mysqli://user:pass@localhost/dbname';
If you have chrooted mysql and have to use TCP like me then remember to change the host accordingly.
$rcmail_config['db_dsnw'] = 'mysqli://user:pass@127.0.0.1/dbname';
If this was already posted by somebody then never mind. :-)
Adam