The port number for PostgreSQL $db_url's doesn't need to be set. If it's not, then $url['port'] isn't either. This situation generates the following notice:

Notice: Undefined index: port in x:\drupal\includes\database.pgsql.inc
on line 27

This patch fixes the situation by wrapping the operator in !empty().

CommentFileSizeAuthor
database.pgsql.inc.port.diff757 bytesdanielc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

danielc’s picture

Can this please be applied to 4-6 and HEAD?

Dries’s picture

Strange that no one else can reproduce this problem.
Committed a slightly different fix to HEAD/DRUPAL-4-6.

danielc’s picture

Thanks. Perhaps I'm seeing it because of running PHP 5 (5.0.4 at the moment) with E_ALL error reporting.

Anonymous’s picture