[BUGFIX] Add fileSuffix option to GeneralUtility::tempnam() 50/26650/8
authorFrans Saris <franssaris@gmail.com>
Sun, 5 Jan 2014 16:26:57 +0000 (17:26 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Wed, 15 Jan 2014 15:53:01 +0000 (16:53 +0100)
commit447dba14b2d49f74741691b3a6db35d4877324ff
tree54312238cbd90c31e7f002efc40b3b3c847032ad
parent52d5bd25010a0bd3ae2812bbf5d6e2391b7a900e
[BUGFIX] Add fileSuffix option to GeneralUtility::tempnam()

Currently it is only possible to create a
temporary file with a given prefix and without
any file extension. But for some use-cases you
need a file with a certain file extension.

This patch introduces a new optional parameter to
GeneralUtility::tempnam() to make it possible to add
e.g. a specific extension to the created file.

In addition the occurrences in core, which can benefit
from this, are adapted resulting in less orphaned
temporary files in typo3temp.

Releases: 6.2
Resolves: #54750
Change-Id: I19383bc8f6b387133bff2f4033f05b28e883d427
Reviewed-on: https://review.typo3.org/26650
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Markus Klein
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/backend/Classes/Sprite/SpriteGenerator.php
typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php
typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php