Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
in includes/handlers.inc line 1113 :
elseif ($GLOBALS['db_type'] == 'mysqli' || version_compare(mysql_get_server_info(), '4.1.3', '>=')) {
If you do not have the mysql extension enabled then using mysql_get_server_info() will result in a fatal error.
Perhaps the following would be a solution. Starting at line 1110 :
if ($GLOBALS['db_type'] == 'pgsql') {
db_query("SET TIME ZONE INTERVAL '$offset' HOUR TO MINUTE");
}
elseif ($GLOBALS['db_type'] == 'mysqli') {
db_query("SET @@session.time_zone = '$offset'");
}
elseif ($GLOBALS['db_type'] == 'mysql' && version_compare(db_version(), '4.1.3', '>=')) {
db_query("SET @@session.time_zone = '$offset'");
}
I don't know enough about the functionality to propose a proper patch.
Additionally, though only a potential issue with Pressflow or Drupal 7 and in a multi-database setup, knowing which db resource to compare could be required.
Thanks.
Comments
Comment #1
dawehnerdb_version sounds like a good plan.
Can you fill a patch for it?
Comment #2
dawehnerCommited to both 6.x-2.x and 6.x-3.x
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedThis commit is causing notices because the committed code uses db_version not db_version()
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedPushed a fix.
Comment #6
dawehnerSo this is fixed.