[TYPO3-core] RFC #16707 : bug : Read from and write to same file hangs GM on network file system
Jigal van Hemert
jigal at xs4all.nl
Tue Dec 28 14:16:15 CET 2010
REMINDER
On 12-12-2010 21:45, Steffen Gebert wrote:
> 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
>
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-team-core
mailing list