Hi, I am getting this error when checking the database in the Roundcube installation.
Fatal error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /program/lib/Roundcube/rcube_db_mysql.php on line 134
Here is line 134:
$result[PDO::MYSQL_ATTR_FOUND_ROWS] = true;
Here is the rest of the code around it for some more detail:
protected function dsn_options($dsn)
{
$result = array();
if (!empty($dsn['key'])) {
$result[PDO::MYSQL_ATTR_KEY] = $dsn['key'];
}
if (!empty($dsn['cipher'])) {
$result[PDO::MYSQL_ATTR_CIPHER] = $dsn['cipher'];
}
if (!empty($dsn['cert'])) {
$result[PDO::MYSQL_ATTR_SSL_CERT] = $dsn['cert'];
}
if (!empty($dsn['capath'])) {
$result[PDO::MYSQL_ATTR_SSL_CAPATH] = $dsn['capath'];
}
if (!empty($dsn['ca'])) {
$result[PDO::MYSQL_ATTR_SSL_CA] = $dsn['ca'];
}
// Always return matching (not affected only) rows count
$result[PDO::MYSQL_ATTR_FOUND_ROWS] = true;
// Enable AUTOCOMMIT mode (#1488902)
$dsn_options[PDO::ATTR_AUTOCOMMIT] = true;
return $result;
}
My server is running PHP 5.3.26 and it has the pdo_mysql thing installed too.
-
Any suggestions?