[TYPO3-core] RFC #16707 : bug : Read from and write to same file hangs GM on network file system
Steffen Gebert
steffen at steffen-gebert.de
Sun Dec 12 21:45:07 CET 2010
Hi Jigal,
> Type: Bugfix
> BT reference: http://bugs.typo3.org/view.php?id=16707
> Branches: trunk / 4.4 / 4.3
I would prefer trunk only, however, if you persist, I'm also fine with
4.4 and maybe 4.3
> $temporaryName··=·substr($theFile,·0,·strrpos($theFile,·basename($theFile)))·.·md5(uniqid())·.·'.gif';
What about
> $temporaryName = dirname($theFile) . '/' . md5(uniqid()) . '.gif';
> @rename($theFile,·$temporaryName);
IIRC we want to avoid error suppressions using @.
I think, problems could arise, if another process is currently also on
the gif file. What do you think of attached version?
Kind regards
Steffen
--
Steffen Gebert
TYPO3 Core Team Member
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16707_v2.diff
Type: text/x-diff
Size: 1218 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101212/263c48c2/attachment.diff>
More information about the TYPO3-team-core
mailing list