Development

#2477 (Typo in sfMessageSource_MySQL.class.php)

You must first sign up to be able to contribute.

Ticket #2477 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Typo in sfMessageSource_MySQL.class.php

Reported by: FlyingFinger Assigned to: fabien
Priority: minor Milestone: 1.0.9
Component: i18n Version:
Keywords: Cc:
Qualification: Unreviewed

Description

Hi,

I found that bug in Version 1.1 (r5767), which can not be choosen here in the ticket formular, so I hope it is ok, that I post it even though.

In lib/i18n/sfMessageSource_MySQL.class.php in the connect function, there is:

       $dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : 'localhost';
       if (!empty($dsninfo['port']))
       {
         $dbhost = ':' . $dsninfo['socket'];
       }

which of course doesn't make sense. It has to be:

       $dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : 'localhost';
       if (!empty($dsninfo['port']))
       {
         $dbhost .= ':' . $dsninfo['port'];
       }

Change History

10/31/07 08:13:51 changed by fabien

  • milestone set to 1.0.9.

10/31/07 08:16:16 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [5771]) fixed typo in sfMessageSource_MySQL.class.php (closes #2477)

10/31/07 08:16:42 changed by fabien

in r5770