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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.9.7, 3.1.1
    • Libraries
    • None
    • MOODLE_29_STABLE, MOODLE_31_STABLE

      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

            Unassigned Unassigned
            rajeshtaneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.