Doctrine 1
  1. Doctrine 1
  2. DC-866

Bug In Debian "Can't parse dsn.."!

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Debian4 PHP 5.3.1

      Description

      config dsn: sqlite:///root/db3.db

      i find parse_url will cause the problem

      ------------------
      $dsn = str_replace("////", "/", $dsn);
      $dsn = str_replace("
      ", "/", $dsn);
      $dsn = preg_replace("/\/\/\/(.*):\//", "//$1:/", $dsn);

      this fix will be correct in windows ,because dsn is sqlite://C:/aa/wafdb.db3

      --------------------------------------------------------------

      but in debian it will be fail.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            sonic wang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: