Doctrine 1
  1. Doctrine 1
  2. DC-851

Temporary schema filename is not unique enough

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Random filename generation is not sufficiently unique when working with multiple developers on a single development server.

      $file = realpath(sys_get_temp_dir()).'/doctrine_schema_'.rand(11111, 99999).'.yml';
      

      Attached patch replaces rand() call with a uniqid() call.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        This issue is in the Symfony code, not Doctrine. Please open a ticket in http://trac.symfony-project.org

        Show
        Jonathan H. Wage added a comment - This issue is in the Symfony code, not Doctrine. Please open a ticket in http://trac.symfony-project.org

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Tristan Rivoallan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: