Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-55218

uniqid() is not guarantee uniqueness under windows and should be avoided.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.9.7, 3.1.1
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_31_STABLE

      Description

      While working on MDL-54977, it was observed that uniqid() does not guarantee uniqueness under windows. We should use html_writer::random_id() instead.

      Reference:
      https://bugs.php.net/bug.php?id=65626
      http://grokbase.com/t/php/php-internals/1428sq0zp3/uniqid-is-not-unique-under-windows

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rajeshtaneja Rajesh Taneja
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: