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.
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().
Comment | File | Size | Author |
---|---|---|---|
database.pgsql.inc.port.diff | 757 bytes | danielc | |
Comments
Comment #1
danielc CreditAttribution: danielc commentedCan this please be applied to 4-6 and HEAD?
Comment #2
Dries CreditAttribution: Dries commentedStrange that no one else can reproduce this problem.
Committed a slightly different fix to HEAD/DRUPAL-4-6.
Comment #3
danielc CreditAttribution: danielc commentedThanks. Perhaps I'm seeing it because of running PHP 5 (5.0.4 at the moment) with E_ALL error reporting.
Comment #4
(not verified) CreditAttribution: commented