Project

General

Profile

Actions

Task #69050

closed

Supply a Utility method to create unique ids in the core

Added by Stephan Großberndt over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend API
Target version:
Start date:
2015-08-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently there are about hundred places in core where unique ids are created using different code:


On windows and in cygwin environments uniqid() has a resolution of one second which results in identical ids if uniqid('Foo'); or uniqid('Foo', TRUE); is called.

We need a utility method that creates unique ids even if called multiple times a second. its ids must not contain . (dots) (added by the , TRUE)) so they are valid in JavaScript context too. In some contexts the ids must start with a letter to be valid.


Files

uniqid.txt (10.1 KB) uniqid.txt Stephan Großberndt, 2015-08-14 11:22

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #69039: Functional Tests: NEWid generation in tests does not match coreClosedMorton Jonuschat2015-08-14

Actions
Related to TYPO3 Core - Bug #59701: uniqid() not returning unique valuesClosedTymoteusz Motylewski2014-06-20

Actions
Related to TYPO3 Core - Bug #63943: PHPUnit-Tests fail on WindowsClosedStephan Großberndt2014-12-16

Actions
Precedes TYPO3 Core - Task #69730: Remove dot in uniqid('NEW', TRUE)ClosedNicole Cordes2015-09-12

Actions
Actions

Also available in: Atom PDF